Warning for stream 0

This commit is contained in:
Dmitri Bogomolov 2021-05-15 21:22:02 +03:00
parent a57358d80a
commit 142fe1adc5
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -150,6 +150,9 @@ class singleCleaner(StoppableThread):
# remove peers with same host and other ports from knownnodes # remove peers with same host and other ports from knownnodes
for stream in connection.streams: for stream in connection.streams:
if stream == 0: # FIXME: stream 0 is a protocol violation if stream == 0: # FIXME: stream 0 is a protocol violation
self.logger.warning(
'Found stream 0 for node %s:%i',
connection.destination)
knownnodes.decreaseRating(connection.destination) knownnodes.decreaseRating(connection.destination)
continue continue
for node in [ for node in [