Browse Source

Increase the initial timeout on waiting for a message on a unix socket to 30 seconds but remove the timeout for the remainder of the message

master
Con Kolivas 10 years ago
parent
commit
6aaf6e0668
  1. 4
      src/libckpool.c

4
src/libckpool.c

@ -707,7 +707,7 @@ char *_recv_unix_msg(int sockd, const char *file, const char *func, const int li
uint32_t msglen; uint32_t msglen;
int ret; int ret;
ret = wait_read_select(sockd, 5); ret = wait_read_select(sockd, 30);
if (unlikely(ret < 1)) { if (unlikely(ret < 1)) {
LOGERR("Select1 failed in recv_unix_msg"); LOGERR("Select1 failed in recv_unix_msg");
goto out; goto out;
@ -723,7 +723,7 @@ char *_recv_unix_msg(int sockd, const char *file, const char *func, const int li
LOGWARNING("Invalid message length zero sent to recv_unix_msg"); LOGWARNING("Invalid message length zero sent to recv_unix_msg");
goto out; goto out;
} }
ret = wait_read_select(sockd, 5); ret = wait_read_select(sockd, 0);
if (unlikely(ret < 1)) { if (unlikely(ret < 1)) {
LOGERR("Select2 failed in recv_unix_msg"); LOGERR("Select2 failed in recv_unix_msg");
goto out; goto out;

Loading…
Cancel
Save