mirror of
https://github.com/xcat2/confluent.git
synced 2025-03-03 17:51:00 +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:
parent
4453ba3b64
commit
2fc4483bba
@ -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:]
|
||||
|
Loading…
x
Reference in New Issue
Block a user