git: 9front

Download patch

ref: 751d73c598ddac68c4204c9dd38f9a1ee6168e73
parent: 0a76bb1d37423e361aadebf9f3c3e0ea2b4c0e26
author: stanley lieber <stanley.lieber@gmail.com>
date: Thu May 3 08:31:09 EDT 2012

webfs/httpc.: increase dial timeout to 10 seconds, response timeout to 20 seconds

--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -542,9 +542,9 @@
 			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 @@
 			/* no timeout when posting */
 			alarm(0);
 		} else {
-			/* wait 10 seconds for the response */
-			alarm(10000);
+			/* wait 20 seconds for the response */
+			alarm(20000);
 		}
 
 		Cont:
--