From d18d7592d38870dcdb117be5103c428446950b62 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 7 Jan 2022 07:17:27 -0500 Subject: [PATCH] Suppress extraneous slp trace errors If a half-behaving peer appears, suppress the error and permit a retry later. --- confluent_server/confluent/discovery/protocols/slp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/protocols/slp.py b/confluent_server/confluent/discovery/protocols/slp.py index becf2b72..0ab6ddc6 100644 --- a/confluent_server/confluent/discovery/protocols/slp.py +++ b/confluent_server/confluent/discovery/protocols/slp.py @@ -534,7 +534,10 @@ def process_peer(newmacs, known_peers, peerbymacaddress, peer): if mac in peerbymacaddress: peerbymacaddress[mac]['addresses'].append(peer) else: - q = query_srvtypes(peer) + try: + q = query_srvtypes(peer) + except Exception as e: + q = None if not q or not q[0]: # SLP might have started and not ready yet # ignore for now