Thread names for IPv6
Thread names for IPv6 contained ":". This caused problems in log parsers.
This commit is contained in:
parent
89752faceb
commit
47f1c0c267
|
@ -80,7 +80,7 @@ class outgoingSynSender(threading.Thread, StoppableThread):
|
|||
shared.alreadyAttemptedConnectionsListLock.release()
|
||||
except threading.ThreadError as e:
|
||||
pass
|
||||
self.name = "outgoingSynSender-" + peer.host
|
||||
self.name = "outgoingSynSender-" + peer.host.replace(":", ".") # log parser field separator
|
||||
if peer.host.find(':') == -1:
|
||||
address_family = socket.AF_INET
|
||||
else:
|
||||
|
|
|
@ -46,7 +46,7 @@ class receiveDataThread(threading.Thread):
|
|||
|
||||
self.sock = sock
|
||||
self.peer = shared.Peer(HOST, port)
|
||||
self.name = "receiveData-" + self.peer.host
|
||||
self.name = "receiveData-" + self.peer.host.replace(":", ".") # ":" log parser field separator
|
||||
self.streamNumber = streamNumber
|
||||
self.objectsThatWeHaveYetToGetFromThisPeer = {}
|
||||
self.selfInitiatedConnections = selfInitiatedConnections
|
||||
|
|
|
@ -36,7 +36,7 @@ class sendDataThread(threading.Thread):
|
|||
someObjectsOfWhichThisRemoteNodeIsAlreadyAware):
|
||||
self.sock = sock
|
||||
self.peer = shared.Peer(HOST, PORT)
|
||||
self.name = "sendData-" + self.peer.host
|
||||
self.name = "sendData-" + self.peer.host.replace(":", ".") # log parser field separator
|
||||
self.streamNumber = streamNumber
|
||||
self.services = 0
|
||||
self.initiatedConnection = False
|
||||
|
|
Reference in New Issue
Block a user