Commit d122a789edf2b2800117381dd1991ef31f97e264

Con Kolivas 2012-10-02T10:19:45

Use 5 second timeout on sock full for now as a temporary workaround.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 0afd6fb..467b863 100644
--- a/util.c
+++ b/util.c
@@ -906,7 +906,7 @@ static bool sock_full(SOCKETTYPE sock, bool wait)
 	FD_SET(sock, &rd);
 	timeout.tv_usec = 0;
 	if (wait)
-		timeout.tv_sec = 60;
+		timeout.tv_sec = 5;
 	else
 		timeout.tv_sec = 0;
 	if (select(sock + 1, &rd, NULL, NULL, &timeout) > 0)