Handle connection exceptions in dht
This commit is contained in:
parent
7ffe670147
commit
4f020cfad1
@ -72,6 +72,10 @@ class SybilNode:
|
|||||||
data = buffer.tobytes()
|
data = buffer.tobytes()
|
||||||
except BlockingIOError:
|
except BlockingIOError:
|
||||||
break
|
break
|
||||||
|
except ConnectionResetError:
|
||||||
|
continue
|
||||||
|
except ConnectionRefusedError:
|
||||||
|
continue
|
||||||
|
|
||||||
# Ignore nodes that uses port 0 (assholes).
|
# Ignore nodes that uses port 0 (assholes).
|
||||||
if addr[1] == 0:
|
if addr[1] == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user