summaryrefslogtreecommitdiff
path: root/sys/src/cmd/webfs
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2012-05-03 12:31:09 -0500
committerstanley lieber <stanley.lieber@gmail.com>2012-05-03 12:31:09 -0500
commit3ce608921a3a4380584912b1700db8ff8f653f86 (patch)
tree169a4f417276de6995a4739c762f03679de94b36 /sys/src/cmd/webfs
parent30b2154e758bc5d6518b971541dac229acdc45e9 (diff)
webfs/httpc.: increase dial timeout to 10 seconds, response timeout to 20 seconds
Diffstat (limited to 'sys/src/cmd/webfs')
-rw-r--r--sys/src/cmd/webfs/http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c
index e72d4856f..7ed7d5cc7 100644
--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -542,9 +542,9 @@ http(char *m, Url *u, Key *shdr, Buq *qbody, Buq *qpost)
qunlock(qpost);
}
- /* give 5 seconds to dial */
+ /* give 10 seconds to dial */
if(h == nil){
- alarm(5000);
+ alarm(10000);
if((h = hdial(proxy ? proxy : u)) == nil)
break;
}
@@ -620,8 +620,8 @@ http(char *m, Url *u, Key *shdr, Buq *qbody, Buq *qpost)
/* no timeout when posting */
alarm(0);
} else {
- /* wait 10 seconds for the response */
- alarm(10000);
+ /* wait 20 seconds for the response */
+ alarm(20000);
}
Cont: