Longer timeout for whereis

This commit is contained in:
Némunaire 2012-06-19 21:45:51 +02:00
parent df4caf2e74
commit eb82d0898d

View File

@ -82,7 +82,7 @@ class User(object):
def connect_to_ns(server, port):
try:
s = socket.socket()
s.settimeout(1)
s.settimeout(3)
s.connect((server, port))
except socket.error:
return None