Skip to content

Fix heartbeat frame handle #222

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

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Fix heartbeat frame handle #222

merged 1 commit into from
Aug 1, 2023

Conversation

Zerpet
Copy link
Member

@Zerpet Zerpet commented Jul 31, 2023

Description

Heartbeat frame is just a header frame. We were reading the header once,
and then reading 4 bytes again, during the handle of the hearbeat frame.
That was missaligning the buffer and causing a panic on next iteration.

@Zerpet Zerpet self-assigned this Jul 31, 2023
@Gsantomaggio Gsantomaggio added the v2.x Applicable to v2.x issues label Jul 31, 2023
@Zerpet Zerpet added this to the 2.0 milestone Aug 1, 2023
Heartbeat frame is just a header frame. We were reading the header once,
and then reading 4 bytes again, during the handle of the hearbeat frame.
That was missaligning the buffer and causing a panic on next iteration.

Signed-off-by: Aitor Pérez Cedres <acedres@vmware.com>
@Zerpet Zerpet force-pushed the zerpet/fix-heartbeat-handle branch from 6e9a3eb to 88f8134 Compare August 1, 2023 16:40
@Zerpet Zerpet merged commit 9675818 into v2 Aug 1, 2023
@Zerpet Zerpet deleted the zerpet/fix-heartbeat-handle branch August 1, 2023 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Applicable to v2.x issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants