Prevent incoming connection flooding from crashing singleListener thread #160

Merged
Atheros1 merged 3 commits from master into master 2013-05-21 19:02:38 +02:00
Showing only changes of commit ca874215a7 - Show all commits

View File

@ -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()