bump timeouts in http and socks python scripts

This commit is contained in:
Arvid Norberg 2013-10-04 15:51:32 +00:00
parent d669d94f88
commit 590c0d876c
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ def start_server(host='localhost', port=8080, IPv6=False, timeout=60,
else: else:
soc_type=socket.AF_INET soc_type=socket.AF_INET
soc = socket.socket(soc_type) soc = socket.socket(soc_type)
soc.settimeout(50) soc.settimeout(120)
print "Serving on %s:%d."%(host, port)#debug print "Serving on %s:%d."%(host, port)#debug
soc.bind((host, port)) soc.bind((host, port))
soc.listen(0) soc.listen(0)

View File

@ -256,6 +256,6 @@ if __name__ == '__main__':
info('Listening on port %d...' % listen_port) info('Listening on port %d...' % listen_port)
server = MyTCPServer(('localhost', listen_port), SocksHandler) server = MyTCPServer(('localhost', listen_port), SocksHandler)
server.timeout = 50 server.timeout = 120
while True: while True:
server.handle_request() server.handle_request()