Fix tracking of already attempted connections

- it didn't delete the entries correctly, resulting in outgoing syn
  sender deadlocking
This commit is contained in:
Peter Šurda 2017-02-28 09:43:09 +01:00
parent f5b430b567
commit e7506b2ac0
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -77,7 +77,8 @@ class receiveDataThread(threading.Thread):
self.initiatedConnection = False
else:
self.initiatedConnection = True
self.selfInitiatedConnections[streamNumber][self] = 0
for stream in self.streamNumber:
self.selfInitiatedConnections[stream][self] = 0
self.someObjectsOfWhichThisRemoteNodeIsAlreadyAware = someObjectsOfWhichThisRemoteNodeIsAlreadyAware
self.objectHashHolderInstance = objectHashHolderInstance
self.startTime = time.time()
@ -132,7 +133,7 @@ class receiveDataThread(threading.Thread):
self.processData()
try:
for stream in self.remoteStreams:
for stream in self.streamNumber:
try:
del self.selfInitiatedConnections[stream][self]
except KeyError: