test_socketserver.py: reduced socket timeout from 20 to 5

This commit is contained in:
Denis Bilenko
2008-11-24 14:13:31 +06:00
parent 115a9ad541
commit 343f2c032c

View File

@@ -35,7 +35,7 @@ class MyMixinServer:
teststring = "hello world\r\n" teststring = "hello world\r\n"
def receive(sock, n, timeout=20): def receive(sock, n, timeout=5):
#print 'select args: ', [sock], [], [], timeout #print 'select args: ', [sock], [], [], timeout
r, w, x = select.select([sock], [], [], timeout) r, w, x = select.select([sock], [], [], timeout)
#print 'select results: ', r, w, x #print 'select results: ', r, w, x