2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix problem where one multicast/broadcast attempt could tank other interfaces

Carrying over change from ssdp, ignore failures on transmit, particularly if
firewall
This commit is contained in:
Jarrod Johnson 2024-02-01 08:50:44 -05:00
parent fc82021f2b
commit 7377c44e0f

View File

@ -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):