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

plugin: Do not send the internal framed message over the wire #4413

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Mar 5, 2021

Well this is embarassing 🙄

Looks like #4394 treated a symptom but not the root cause. We were
actually sending the message framed with the WIRE_CUSTOMMSG_OUT and
the length prefix over the encrypted connection to the peer. It just
happened to be a valid custommsg...

This fixes the issue, and this time I made sure we actually send the
raw message over the wire. However for backward compatibility we
needed to imitate the faulty behavior which is 90% of this patch :-)

Changelog-Fixed: plugin: dev-sendcustommsg included the type and length prefix when sending a message.

Looks like ElementsProject#4394 treated a symptom but not the root cause. We were
actually sending the message framed with the WIRE_CUSTOMMSG_OUT and
the length prefix over the encrypted connection to the peer. It just
happened to be a valid custommsg...

This fixes the issue, and this time I made sure we actually send the
raw message over the wire. However for backward compatibility we
needed to imitate the faulty behavior which is 90% of this patch :-)

Changelog-Fixed: plugin: `dev-sendcustommsg` included the type and length prefix when sending a message.
@cdecker cdecker added this to the v0.9.4 milestone Mar 5, 2021
@cdecker cdecker self-assigned this Mar 5, 2021
@cdecker cdecker marked this pull request as draft March 5, 2021 18:10
@cdecker cdecker marked this pull request as ready for review March 6, 2021 12:56
@rustyrussell
Copy link
Contributor

Ack a7966d6

@rustyrussell rustyrussell merged commit 21355ed into ElementsProject:master Mar 9, 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.

2 participants