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

Improve handling of messages larger than 10MB #2470

Merged
merged 3 commits into from
Sep 12, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Sep 6, 2016

Old implementation dropped messages larger than 10MB (hard coded),
to protect against memory DoS. However, in some cases the transaction
was still recorded, but the parsing of the headers was incomplete.

This makes the support for large messages explicit, by adding a mode
to the parser that "sees" the segments without storing them.

It also makes the HTTP max_message_size configurable (no longer hard coded) and fixes an issues in master only were the body was included if the Content-Type header was missing.

@tsg tsg added in progress Pull request is currently in progress. review Packetbeat labels Sep 6, 2016
Tudor Golubenco added 3 commits September 8, 2016 13:27
Old implementation dropped messages larger than 10MB (hard coded),
to protect against memory DoS. However, in some cases the transaction
was still recorded, but the parsing of the headers was incomplete.

This makes the support for large messages explicit, by adding a mode
to the parser that "sees" the segments without storing them.
* It used to be hardcoded to 10 MB
* Added a system test for the case of messages larger than max_message_size
@tsg tsg force-pushed the packetbeat_large_messages branch from c2cc2d3 to e2754c0 Compare September 8, 2016 11:32
@tsg tsg removed the in progress Pull request is currently in progress. label Sep 8, 2016
@tsg
Copy link
Contributor Author

tsg commented Sep 8, 2016

Ready for reviews. Also, cleaned up history (I prefer 3 individual commits to separate the parts that can be backported to 1.3).

@tsg tsg added the needs_backport PR is waiting to be backported to other branches. label Sep 8, 2016
@monicasarbu
Copy link
Contributor

LGTM

@monicasarbu monicasarbu merged commit df0673d into elastic:master Sep 12, 2016
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label Sep 22, 2016
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