Skip to content

Conversation

@nnposter
Copy link

@nnposter nnposter commented Oct 5, 2025

As noted in #1939, both socket:bind() and socket:connect() succeed even if mksock_bind_addr() fails. The result is that the socket gets silently assigned a random ephemeral source port, instead of the requested one, which in turn has the ultimate effect of RPC scripts randomly failing.

This PR will inspect the actual assigned source port and trigger a retry as needed.

It will be merged in after November 1 unless concerns are raised.

@nnposter nnposter changed the title Properly detect if binding a RPC.Comm socket to a port failed Properly detect if binding an RPC.Comm socket to a port failed Nov 1, 2025
@nmap-bot nmap-bot closed this in 8d7fa53 Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant