Fix tracking of already attempted connections
- it didn't delete the entries correctly, resulting in outgoing syn sender deadlocking
This commit is contained in:
parent
f5b430b567
commit
e7506b2ac0
|
@ -77,7 +77,8 @@ class receiveDataThread(threading.Thread):
|
||||||
self.initiatedConnection = False
|
self.initiatedConnection = False
|
||||||
else:
|
else:
|
||||||
self.initiatedConnection = True
|
self.initiatedConnection = True
|
||||||
self.selfInitiatedConnections[streamNumber][self] = 0
|
for stream in self.streamNumber:
|
||||||
|
self.selfInitiatedConnections[stream][self] = 0
|
||||||
self.someObjectsOfWhichThisRemoteNodeIsAlreadyAware = someObjectsOfWhichThisRemoteNodeIsAlreadyAware
|
self.someObjectsOfWhichThisRemoteNodeIsAlreadyAware = someObjectsOfWhichThisRemoteNodeIsAlreadyAware
|
||||||
self.objectHashHolderInstance = objectHashHolderInstance
|
self.objectHashHolderInstance = objectHashHolderInstance
|
||||||
self.startTime = time.time()
|
self.startTime = time.time()
|
||||||
|
@ -132,7 +133,7 @@ class receiveDataThread(threading.Thread):
|
||||||
self.processData()
|
self.processData()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for stream in self.remoteStreams:
|
for stream in self.streamNumber:
|
||||||
try:
|
try:
|
||||||
del self.selfInitiatedConnections[stream][self]
|
del self.selfInitiatedConnections[stream][self]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Reference in New Issue
Block a user