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

Fix htlc error causing connclose #4550

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented May 21, 2021

As a side-effect, this fixes our MPP flake :) No, it does not.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the guilt/fix-htlc-error-connclose branch from 4b109ad to b06afa3 Compare May 21, 2021 00:36
@niftynei
Copy link
Contributor

ACK b06afa3

…nect bug.

We set the timeout on first HTLC, but didn't clear it if that HTLC failed.

It's saner to have a per-HTLC timeout (since that's what it is!) and
also our timer infra is specially coded to scale approximately infinitely so
trying to optimize this is vastly premature.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Protocol: We would sometimes gratuitously disconnect 30 seconds after an HTLC failed.
@rustyrussell
Copy link
Contributor Author

Sigh. "Never change log messages". Trivial fix pushed for test.

@rustyrussell rustyrussell force-pushed the guilt/fix-htlc-error-connclose branch from b06afa3 to de3fe42 Compare May 21, 2021 02:17
@rustyrussell
Copy link
Contributor Author

Ack de3fe42

@rustyrussell rustyrussell merged commit 33736b8 into ElementsProject:master May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants