fix disconnect conditions for non-ssl reads

SVN revision: 54197
This commit is contained in:
Mike Blumenkrantz 2010-11-05 19:46:48 +00:00
parent 4b50987072
commit add4a1d9a4
1 changed files with 2 additions and 2 deletions

View File

@ -1749,7 +1749,7 @@ _ecore_con_cl_read(Ecore_Con_Server *svr)
{
errno = 0;
num = read(svr->fd, buf, sizeof(buf));
if ((num < 0) && (errno == EAGAIN))
if ((num >= 0) || (errno == EAGAIN))
lost_server = EINA_FALSE;
}
else
@ -2066,7 +2066,7 @@ _ecore_con_svr_cl_read(Ecore_Con_Client *cl)
{
errno = 0;
num = read(cl->fd, buf, sizeof(buf));
if (errno == EAGAIN)
if ((num >= 0) || (errno == EAGAIN))
lost_client = EINA_FALSE;
}
else