Commit 43bcccf8688ce882473e883bf88dfad2bdb53825

Con Kolivas 2013-05-09T10:41:27

Recheck select succeeds on EWOULDBLOCK for stratum.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index b801280..2f281f3 100644
--- a/util.c
+++ b/util.c
@@ -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;
 				}