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

Fixing a bug where we were bottlenecking on frames that had bodies smaller than 8 bytes #320

Merged
merged 3 commits into from Mar 1, 2024

Conversation

richardpark-msft
Copy link
Member

The frame parsing code parses in two stages - headers, which tells you the body length, and the body itself. If the body was < 8 bytes (the standard frame header size) we'd end up skipping the body parse until we accumulated at least 8 bytes worth of material.

The fix is simple - move the "frame header size" check into the frame header portion of the parsing code.

… body length was smaller than the standard frame header (8 bytes).

Moving it within the portion of the reader that deals with parsing headers.
@jhendrixMSFT jhendrixMSFT merged commit a819335 into Azure:main Mar 1, 2024
5 checks passed
@richardpark-msft richardpark-msft deleted the amqp-fix-small-frames branch March 1, 2024 18:54
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.

None yet

3 participants