V0.6 #852
|
@ -59,6 +59,12 @@ def connectToStream(streamNumber):
|
||||||
maximumNumberOfHalfOpenConnections = 9
|
maximumNumberOfHalfOpenConnections = 9
|
||||||
else:
|
else:
|
||||||
maximumNumberOfHalfOpenConnections = 64
|
maximumNumberOfHalfOpenConnections = 64
|
||||||
|
try:
|
||||||
|
# don't overload Tor
|
||||||
|
if shared.config.get('bitmessagesettings', 'socksproxytype') != 'none':
|
||||||
|
maximumNumberOfHalfOpenConnections = 4
|
||||||
|
except:
|
||||||
|
pass
|
||||||
for i in range(maximumNumberOfHalfOpenConnections):
|
for i in range(maximumNumberOfHalfOpenConnections):
|
||||||
a = outgoingSynSender()
|
a = outgoingSynSender()
|
||||||
a.setup(streamNumber, selfInitiatedConnections)
|
a.setup(streamNumber, selfInitiatedConnections)
|
||||||
|
|
Reference in New Issue
Block a user