make socks.py and http.py shut themselves down after a timeout of inactivity (maybe that will fix the problem of them lingering, stalling tests). fix some issues in run_regression_tests.py

This commit is contained in:
Arvid Norberg
2013-10-03 05:44:38 +00:00
parent fdaffc5f1a
commit d1f41a72f4
4 changed files with 10 additions and 3 deletions

View File

@@ -192,6 +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)
print "Serving on %s:%d."%(host, port)#debug
soc.bind((host, port))
soc.listen(0)