Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use socket.bind to find a port to listen to. #202

Closed
wants to merge 1 commit into from
Closed

Use socket.bind to find a port to listen to. #202

wants to merge 1 commit into from

Conversation

ndonegan
Copy link
Contributor

This reduces the chance of conflicting with another process, and possibly fixes clalancette/oz/#201

This reduces the chance of conflicting with another process, and possibly fixes clalancette/oz/#201
@clalancette
Copy link
Owner

Choose a port that is known open (at least for the moment), instead of just one random. Make sense to me. As you mentioned, this doesn't get rid of all conflicts, but should improve things. So I've applied it, thanks. Incidentally, if we could get libvirt to choose the port, and then just tell us what it is (via the XML), then that would close the remaining race as well. I may look into whether that is possible

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.

2 participants