Skip to content

channeld: don't spin trying to send commitment while waiting.#6107

Merged
rustyrussell merged 1 commit intoElementsProject:masterfrom
rustyrussell:channeld-spam
Mar 22, 2023
Merged

channeld: don't spin trying to send commitment while waiting.#6107
rustyrussell merged 1 commit intoElementsProject:masterfrom
rustyrussell:channeld-spam

Conversation

@rustyrussell
Copy link
Contributor

We would sleep for 10msec (default) and try again, spamming the logs every second. But we're waiting for revoke_and_ack, and that handler already sets off the timer, so there's no need to spin at all!

Fixes: #6077
Changelog-Fixed: channeld: no longer spin and spam logs when waiting for revoke_and_ack.

We would sleep for 10msec (default) and try again, spamming the logs
every second.  But we're waiting for revoke_and_ack, and that handler
already sets off the timer, so there's no need to spin at all!

Fixes: ElementsProject#6077
Changelog-Fixed: `channeld`: no longer spin and spam logs when waiting for revoke_and_ack.
Signed-off-by: Rusty Russell <[email protected]>
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Nice remove code is always good to see :)

ACK f68908b

Thanks to patch this

@rustyrussell rustyrussell merged commit 03c153a into ElementsProject:master Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

strange corner case while sending a commit

2 participants