From 6aaf6e066842668e0a177428323e7b741fce1cc2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 10 Sep 2014 20:18:59 +1000 Subject: [PATCH] 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 --- src/libckpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libckpool.c b/src/libckpool.c index e4f9bd3b..fc3d8213 100644 --- a/src/libckpool.c +++ b/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; int ret; - ret = wait_read_select(sockd, 5); + ret = wait_read_select(sockd, 30); if (unlikely(ret < 1)) { LOGERR("Select1 failed in recv_unix_msg"); 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"); goto out; } - ret = wait_read_select(sockd, 5); + ret = wait_read_select(sockd, 0); if (unlikely(ret < 1)) { LOGERR("Select2 failed in recv_unix_msg"); goto out;