Skip to content

Conversation

ekzhang
Copy link
Owner

@ekzhang ekzhang commented Apr 28, 2023

With this pull request, we no longer use bind("0.0.0.0", 0) from the operating system to choose an arbitrary available port. Instead, we use our own random number generator and retry 150 times. See comments for an explanation of where this constant comes from.

@ekzhang
Copy link
Owner Author

ekzhang commented Apr 28, 2023

Merging this will be a minor version update, to v0.5.0, since I changed some of the library method signatures.

@ekzhang ekzhang merged commit 0860c6e into main Apr 28, 2023
@ekzhang ekzhang deleted the ekzhang/random-ports branch April 28, 2023 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug(?)/Feature Request: "new client port" is always zero. Print Port of Connected Machines? Min port is not respected for randomly assigned ports
1 participant