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

BF: Stop searching when a port is found/bound #429

Closed

Conversation

pauldmccarthy
Copy link
Contributor

Fixes (what I think is) a trivial bug in ipykernel/heartbeat.py.

This loop in the Heartbeat,_bind_socket method should be broken as soon as an available port number is found.

Copy link
Contributor

@edisongustavo edisongustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change makes a lot of sense to me.

(I can't merge because I'm not a contributor though).

@mdickinson
Copy link
Contributor

LGTM, too, having just encountered this in another project. The test failure on Appveyor doesn't appear to be related.

@pauldmccarthy
Copy link
Contributor Author

I'd ignore this PR, and favour #431 instead, as it adds a regression test in addition to fixing the bug.

@blink1073
Copy link
Contributor

Done!

@blink1073 blink1073 closed this Sep 12, 2019
@Carreau Carreau added this to the no action milestone Jun 14, 2021
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.

5 participants