Browse Source

Check for zero ret in read_socket_line

master
Con Kolivas 10 years ago
parent
commit
75f8a93d49
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -562,7 +562,7 @@ rewait:
if (eom) if (eom)
break; break;
/* Have we used up all the timeout yet? */ /* Have we used up all the timeout yet? */
if (timeout > 0 && (errno == EAGAIN || errno == EWOULDBLOCK)) if (timeout > 0 && (errno == EAGAIN || errno == EWOULDBLOCK || !ret))
goto rewait; goto rewait;
if (cs->ckp->proxy) if (cs->ckp->proxy)
LOGINFO("Failed to recv in read_socket_line"); LOGINFO("Failed to recv in read_socket_line");

Loading…
Cancel
Save