Browse Source

Handle other forms of read_socket_line ending after message complete as not a failure

master
Con Kolivas 10 years ago
parent
commit
b637efa179
  1. 6
      src/ckpool.c

6
src/ckpool.c

@ -419,9 +419,9 @@ int read_socket_line(connsock_t *cs, const int timeout)
char *newbuf;
ret = wait_read_select(fd, eom ? 0 : timeout);
if (eom && !ret)
break;
if (ret < 1) {
if (eom)
break;
if (!ret)
LOGDEBUG("Select timed out in read_socket_line");
else {
@ -435,7 +435,7 @@ int read_socket_line(connsock_t *cs, const int timeout)
ret = recv(fd, readbuf, PAGESIZE - 4, 0);
if (ret < 1) {
/* Closed socket after valid message */
if (!ret && eom)
if (eom)
break;
if (cs->ckp->proxy)
LOGNOTICE("Failed to recv in read_socket_line");

Loading…
Cancel
Save