Longer timeout for whereis
This commit is contained in:
parent
df4caf2e74
commit
eb82d0898d
@ -82,7 +82,7 @@ class User(object):
|
|||||||
def connect_to_ns(server, port):
|
def connect_to_ns(server, port):
|
||||||
try:
|
try:
|
||||||
s = socket.socket()
|
s = socket.socket()
|
||||||
s.settimeout(1)
|
s.settimeout(3)
|
||||||
s.connect((server, port))
|
s.connect((server, port))
|
||||||
except socket.error:
|
except socket.error:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user