printself,'connected to',HOST,'during an outgoing attempt.'
shared.printLock.release()
sd=sendDataThread()
sd.setup(sock,HOST,PORT,self.streamNumber,
objectsOfWhichThisRemoteNodeIsAlreadyAware)
sd.start()
sd.sendVersionMessage()
exceptsocks.GeneralProxyErroraserr:
ifbitmessagemain.verbose>=2:
shared.printLock.acquire()
print'Could NOT connect to',HOST,'during outgoing attempt.',err
shared.printLock.release()
PORT,timeLastSeen=shared.knownNodes[
self.streamNumber][HOST]
if(int(time.time())-timeLastSeen)>172800andlen(shared.knownNodes[self.streamNumber])>1000:# for nodes older than 48 hours old if we have more than 1000 hosts in our list, delete from the shared.knownNodes data-structure.
shared.knownNodesLock.acquire()
delshared.knownNodes[self.streamNumber][HOST]
shared.knownNodesLock.release()
shared.printLock.acquire()
print'deleting ',HOST,'from shared.knownNodes because it is more than 48 hours old and we could not connect to it.'
print'Bitmessage MIGHT be having trouble connecting to the SOCKS server. '+str(err)
else:
ifbitmessagemain.verbose>=1:
shared.printLock.acquire()
print'Could NOT connect to',HOST,'during outgoing attempt.',err
shared.printLock.release()
PORT,timeLastSeen=shared.knownNodes[
self.streamNumber][HOST]
if(int(time.time())-timeLastSeen)>172800andlen(shared.knownNodes[self.streamNumber])>1000:# for nodes older than 48 hours old if we have more than 1000 hosts in our list, delete from the knownNodes data-structure.
shared.knownNodesLock.acquire()
delshared.knownNodes[self.streamNumber][HOST]
shared.knownNodesLock.release()
shared.printLock.acquire()
print'deleting ',HOST,'from knownNodes because it is more than 48 hours old and we could not connect to it.'
shared.printLock.release()
exceptExceptionaserr:
sys.stderr.write(
'An exception has occurred in the outgoingSynSender thread that was not caught by other exception types: ')