set a short timeout for incoming connections which are not fully established with version messages
This commit is contained in:
parent
cb387af25f
commit
ca874215a7
|
@ -221,7 +221,8 @@ class singleListener(threading.Thread):
|
||||||
a.close()
|
a.close()
|
||||||
a,(HOST,PORT) = sock.accept()
|
a,(HOST,PORT) = sock.accept()
|
||||||
objectsOfWhichThisRemoteNodeIsAlreadyAware = {}
|
objectsOfWhichThisRemoteNodeIsAlreadyAware = {}
|
||||||
|
a.settimeout(20)
|
||||||
|
|
||||||
sd = sendDataThread()
|
sd = sendDataThread()
|
||||||
sd.setup(a,HOST,PORT,-1,objectsOfWhichThisRemoteNodeIsAlreadyAware)
|
sd.setup(a,HOST,PORT,-1,objectsOfWhichThisRemoteNodeIsAlreadyAware)
|
||||||
sd.start()
|
sd.start()
|
||||||
|
|
Reference in New Issue
Block a user