mirror of
https://github.com/xcat2/confluent.git
synced 2026-06-11 17:28:50 +00:00
Backport SLP performance enhancement from async branch
Same concept that could bog down async variant could be a slowdown for normal confluent.
This commit is contained in:
@@ -493,6 +493,8 @@ def snoop(handler, protocol=None):
|
||||
(rsp, peer) = s.recvfrom(9000)
|
||||
if peer in known_peers:
|
||||
continue
|
||||
if peer in deferpeers:
|
||||
continue
|
||||
mac = neighutil.get_hwaddr(peer[0])
|
||||
if not mac:
|
||||
probepeer = (peer[0], struct.unpack('H', os.urandom(2))[0] | 1025) + peer[2:]
|
||||
|
||||
Reference in New Issue
Block a user