From 590c0d876c85a2f37b0a740c29b294a7349bdeab Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 4 Oct 2013 15:51:32 +0000 Subject: [PATCH] bump timeouts in http and socks python scripts --- test/http.py | 2 +- test/socks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/http.py b/test/http.py index 512e1a342..6833cf341 100644 --- a/test/http.py +++ b/test/http.py @@ -192,7 +192,7 @@ def start_server(host='localhost', port=8080, IPv6=False, timeout=60, else: soc_type=socket.AF_INET soc = socket.socket(soc_type) - soc.settimeout(50) + soc.settimeout(120) print "Serving on %s:%d."%(host, port)#debug soc.bind((host, port)) soc.listen(0) diff --git a/test/socks.py b/test/socks.py index 511fadc4c..bac4b85b9 100644 --- a/test/socks.py +++ b/test/socks.py @@ -256,6 +256,6 @@ if __name__ == '__main__': info('Listening on port %d...' % listen_port) server = MyTCPServer(('localhost', listen_port), SocksHandler) - server.timeout = 50 + server.timeout = 120 while True: server.handle_request()