Skip to content

Conversation

@edsiper
Copy link
Member

@edsiper edsiper commented Oct 10, 2024

When Monkey parser returns MK_HTTP_PARSER_PENDING always reset the parser state:

The primary reason is that the caller may need to expand the buffer size when payloads
exceed the current buffer's capacity. In such cases, parser pointers could end up
referencing incorrect memory locations.

To prevent this, we reset the parser state, which introduces a minimal performance overhead 
in exchange for ensuring safety.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
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