Browse Source

Recheck select succeeds on EWOULDBLOCK for stratum.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
43bcccf868
  1. 2
      util.c

2
util.c

@ -1099,7 +1099,7 @@ char *recv_line(struct pool *pool) @@ -1099,7 +1099,7 @@ char *recv_line(struct pool *pool)
break;
}
if (n < 0) {
if (!sock_blocks()) {
if (!sock_blocks() || !socket_full(pool, false)) {
ret = RECV_RECVFAIL;
break;
}

Loading…
Cancel
Save