You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix UDPSocket broadcast spec to not use connect (#16165)
AFAICT, calling `connect` is only required because we bind the server to the loopback interface that won't receive broadcasted messages otherwise. For example, on my Linux computer, the loopback interface doesn't have BROADCAST traffic enabled (no MULTICAST).
We can however start a regular UDP server and a UDP client socket with `SO_BROADCAST`, then call `sendto` to send a message to the broadcast address.
0 commit comments