Skip to content

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

Closed
pauldmccarthy wants to merge 1 commit into
ipython:masterfrom
pauldmccarthy:bf/heartbeat_port_search
Closed

BF: Stop searching when a port is found/bound#429
pauldmccarthy wants to merge 1 commit into
ipython:masterfrom
pauldmccarthy:bf/heartbeat_port_search

Conversation

@pauldmccarthy

Copy link
Copy Markdown
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.

@edisongustavo edisongustavo left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@pauldmccarthy

Copy link
Copy Markdown
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
Copy Markdown
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