Make the timeout longer to give slow machines a chance to pass the test

before timing out.  This doesn't change the duration of the test under
normal circumstances.  This is targetted at fixing the spurious failures
on the FreeBSD buildbot primarily.
This commit is contained in:
Neal Norwitz 2008-03-05 05:38:06 +00:00
parent ce527883dc
commit 48309d5a4b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ PORT = None
def server(evt, buf):
serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
serv.settimeout(1)
serv.settimeout(15)
serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
serv.bind(("", 0))
global PORT