From 9932dadfc7ddc65ccb3d2988df1a6dcc9cf536c5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 13 Apr 2009 14:22:24 +0200 Subject: This _should_ fix a race condition that happens when a client is about to cleanup the stuff that is used by another client that is about to set up a new connection. Increased timeout in sock_stuff from 10 to 20 seconds and decreased the pullbulk recv timeout from 5 to 3 seconds. --- sock_stuff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sock_stuff.c') diff --git a/sock_stuff.c b/sock_stuff.c index 78249e6..8a06135 100644 --- a/sock_stuff.c +++ b/sock_stuff.c @@ -11,7 +11,7 @@ #include #include "sock_stuff.h" -#define RECV_TIMEOUT 10000 +#define RECV_TIMEOUT 20000 static int verbose = 0; @@ -75,7 +75,7 @@ int connect_unix_socket(const char *filename) // check if socket file exists... if (stat(filename, &fst) != 0) { - if (verbose >= 2) fprintf(stderr, "%s: stat '%s': %s\n", __func__, filename, strerror(errno)); + if (verbose >= 2) fprintf(stderr, "%s: stat '%s': %s\n", __func__, filename, strerror(errno)); return -1; } -- cgit v1.1-32-gdbae