Skip to content

funding: fix stream handling issues in consumePendingOpenChannels#507

Merged
Roasbeef merged 1 commit into
masterfrom
fix-pending-chan-stream
Jul 16, 2025
Merged

funding: fix stream handling issues in consumePendingOpenChannels#507
Roasbeef merged 1 commit into
masterfrom
fix-pending-chan-stream

Conversation

@Roasbeef

@Roasbeef Roasbeef commented Jul 2, 2025

Copy link
Copy Markdown
Member

In this commit, we fix a few issues with the streaming handling:

  1. If it got an error on Recv() it would just spin for ever, generating an endless stream of spammy logs.
  2. It never listened on the Done() context channel for the stream. So if the lnd had actually hung up, it wouldn't detect that and would just keep spinning.

To make things more graceful, we also add back off when we try to reconnect.

In this commit, we fix a few issues with the streaming handling:
  1. If it got an error on Recv() it would just spin for ever,
generating an endless stream of spammy logs.
  2. It never listened on the Done() context channel for the stream. So
if the `lnd` had actually hung up, it wouldn't detect that and would
just keep spinning.

To make things more graceful, we also add back off when we try to
reconnect.

@guggero guggero 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.

Very nice, LGTM 🎉

Thanks a lot for the fix. I updated the server to use this commit and ran a full itest suite, no issues there.

@Roasbeef
Roasbeef merged commit 85fb392 into master Jul 16, 2025
6 checks passed
@guggero
guggero deleted the fix-pending-chan-stream branch August 13, 2025 07:01
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