summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2009-03-27 11:02:25 -0400
committerNathan Straz <nstraz@redhat.com>2009-03-27 11:02:25 -0400
commit84c28731c129daedc11bb55e287e23c06ef3f59a (patch)
treea3e3720caf3d2ffe5da0dcff9aeaabe8b719370f
parent1d77e4339f830da64bfcb801667f721d55f30096 (diff)
downloadqarsh-84c28731c129daedc11bb55e287e23c06ef3f59a.tar.gz
qarsh-84c28731c129daedc11bb55e287e23c06ef3f59a.tar.xz
qarsh-84c28731c129daedc11bb55e287e23c06ef3f59a.zip
[btime] Increase time to wait for response
A quarter of a second may be too short for some connections. Increasing it to half a second should make it more reliable.
-rw-r--r--btime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btime.c b/btime.c
index 533ab3a..b3a9334 100644
--- a/btime.c
+++ b/btime.c
@@ -115,7 +115,7 @@ btime(const char *host)
retry = 0;
timeout.tv_sec = 0;
- timeout.tv_usec = 250000;
+ timeout.tv_usec = 500000;
if (select(sd + 1, &sdset, NULL, NULL, &timeout) != 1) {
/* Either an error or a timeout, we don't need to retry */