Longer timeout for whereis
This commit is contained in:
parent
df4caf2e74
commit
eb82d0898d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue