2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-11 16:24:41 +00:00

Also skip over failure to broadcast SSDP

This commit is contained in:
Jarrod Johnson 2023-03-29 16:55:12 -04:00
parent f808c542e4
commit 7ac778106e

View File

@ -350,7 +350,10 @@ def _find_service(service, target):
msg = smsg.format(bcast, service)
if not isinstance(msg, bytes):
msg = msg.encode('utf8')
net4.sendto(msg, (bcast, 1900))
try:
net4.sendto(msg, (bcast, 1900))
except socket.error:
pass
# SSDP by spec encourages responses to spread out over a 3 second interval
# hence we must be a bit more patient
deadline = util.monotonic_time() + 4