set a short timeout for incoming connections which are not fully established with version messages

This commit is contained in:
Jonathan Warren 2013-05-21 12:51:52 -04:00
parent cb387af25f
commit ca874215a7

View File

@ -221,6 +221,7 @@ class singleListener(threading.Thread):
a.close()
a,(HOST,PORT) = sock.accept()
objectsOfWhichThisRemoteNodeIsAlreadyAware = {}
a.settimeout(20)
sd = sendDataThread()
sd.setup(a,HOST,PORT,-1,objectsOfWhichThisRemoteNodeIsAlreadyAware)