From 7377c44e0fadc79b91cfe0daee164d6cbd7a2759 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 1 Feb 2024 08:50:44 -0500 Subject: [PATCH] Fix problem where one multicast/broadcast attempt could tank other interfaces Carrying over change from ssdp, ignore failures on transmit, particularly if firewall --- confluent_server/confluent/discovery/protocols/slp.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/confluent_server/confluent/discovery/protocols/slp.py b/confluent_server/confluent/discovery/protocols/slp.py index e42c1577..ac332def 100644 --- a/confluent_server/confluent/discovery/protocols/slp.py +++ b/confluent_server/confluent/discovery/protocols/slp.py @@ -246,11 +246,11 @@ def _find_srvtype(net, net4, srvtype, addresses, xid): try: net4.sendto(data, ('239.255.255.253', 427)) except socket.error as se: - # On occasion, multicasting may be disabled - # tolerate this scenario and move on - if se.errno != 101: - raise - net4.sendto(data, (bcast, 427)) + pass + try: + net4.sendto(data, (bcast, 427)) + except socket.error as se: + pass def _grab_rsps(socks, rsps, interval, xidmap, deferrals):