KnownNodes missing init
- init knownnodes when connecting to a stream
This commit is contained in:
parent
157881bc63
commit
35a712d11d
|
@ -29,6 +29,7 @@ from helper_startup import isOurOperatingSystemLimitedToHavingVeryFewHalfOpenCon
|
||||||
import defaults
|
import defaults
|
||||||
import shared
|
import shared
|
||||||
from helper_sql import sqlQuery
|
from helper_sql import sqlQuery
|
||||||
|
import knownnodes
|
||||||
import state
|
import state
|
||||||
import shutdown
|
import shutdown
|
||||||
import threading
|
import threading
|
||||||
|
@ -66,6 +67,11 @@ def connectToStream(streamNumber):
|
||||||
maximumNumberOfHalfOpenConnections = 4
|
maximumNumberOfHalfOpenConnections = 4
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
with knownnodes.knownNodesLock:
|
||||||
|
if streamNumber not in knownnodes.knownNodes:
|
||||||
|
knownnodes.knownNodes[streamNumber] = {}
|
||||||
|
|
||||||
for i in range(maximumNumberOfHalfOpenConnections):
|
for i in range(maximumNumberOfHalfOpenConnections):
|
||||||
a = outgoingSynSender()
|
a = outgoingSynSender()
|
||||||
a.setup(streamNumber, selfInitiatedConnections)
|
a.setup(streamNumber, selfInitiatedConnections)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user