summaryrefslogtreecommitdiffstats
path: root/btime_int.h
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2006-08-11 18:54:04 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:46 -0400
commit1b8dcdd76275c1a5071a844becc8c3d6e9daae16 (patch)
tree6aff5e722c6d230ebc7f23c1a76175f86a63ea7f /btime_int.h
parent4464bbb265280cd2bd015a662b76a316c228cc28 (diff)
downloadqarsh-1b8dcdd76275c1a5071a844becc8c3d6e9daae16.tar.gz
qarsh-1b8dcdd76275c1a5071a844becc8c3d6e9daae16.tar.xz
qarsh-1b8dcdd76275c1a5071a844becc8c3d6e9daae16.zip
After doing some debugging with the fleas, it turns out we're not
waiting around long enough for the heartbeat response to come back. Since we only heartbeat when there isn't any output (in qarsh), taking up to a second won't hurt. After doing some tests I'm changing the recvfrom to recvfrom sleep to 1000 usec and retrying up to 40 times.
Diffstat (limited to 'btime_int.h')
-rw-r--r--btime_int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/btime_int.h b/btime_int.h
index 38f043f..817df1c 100644
--- a/btime_int.h
+++ b/btime_int.h
@@ -7,7 +7,8 @@
#define BTIME_PORT 23456
#define BTIME_MSGLEN 128
-#define MAX_RETRY 5
+#define MAX_RETRY 40
+#define RETRY_SLEEP 1000
#define COOKIE_RANDOM_PARTS 4
#define COOKIE_LEN (3 + (COOKIE_RANDOM_PARTS * sizeof(int32_t)))