Browse Source

Fix timeout in read_socket_line inappropriately running out

master
Con Kolivas 9 years ago
parent
commit
5a3183cf04
  1. 1
      src/ckpool.c

1
src/ckpool.c

@ -539,6 +539,7 @@ rewait:
} }
tv_time(&now); tv_time(&now);
diff = tvdiff(&now, &start); diff = tvdiff(&now, &start);
copy_tv(&start, &now);
*timeout -= diff; *timeout -= diff;
while (42) { while (42) {
char readbuf[PAGESIZE] = {}; char readbuf[PAGESIZE] = {};

Loading…
Cancel
Save