Skip to content

Conversation

@rustyrussell
Copy link
Contributor

65dccea "pytest: fix flake in test_reconnect_signed" accidentally introduced a bug, where the connect command may not return.

If we call "connect" while a connection is still being processed through the peer_connected hooks, we would call peer_channels_cleanup(), which (if the peer has no channels) would free the peer.

Then when the peer_connected hook returned, it would lookup the peer, see it was gone, and silently return. The connect_succeeded() function was never called, and the connect command never woken.

Changelog-None: bug introduced this release.

65dccea "pytest: fix flake in test_reconnect_signed" accidentally
introduced a bug, where the connect command may not return.

If we call "connect" while a connection is still being processed
through the peer_connected hooks, we would call peer_channels_cleanup(),
which (if the peer has no channels) would free the peer.

Then when the peer_connected hook returned, it would lookup the peer,
see it was gone, and silently return.  The connect_succeeded() function
was never called, and the connect command never woken.

Signed-off-by: Rusty Russell <[email protected]>
Changelog-None: bug introduced this release.
@rustyrussell rustyrussell added this to the v25.12 milestone Nov 18, 2025
@rustyrussell rustyrussell merged commit 55d622b into ElementsProject:master Nov 19, 2025
34 of 39 checks passed
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.

1 participant