-
Notifications
You must be signed in to change notification settings - Fork 3.9k
STOMP: introduce a max frame size limit #8802
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
Conversation
one of the tests sends 16mb messages
ef34f33
to
75cec6f
Compare
@michaelklishin @mkuratczyk I'm open to changing the default limit. Also current implementation is coarse with tolerance up to buffer size (well it read from network already anyway). If end of the frame is inside of newly read buffer and it exceeds the limit parser is allowed to continue and return frame. in the next round I will move this check inside parser itself. |
(cherry picked from commit 5978c15f4ceac0b1965bcce5017766a23987a2af)
Let's start with a 1 MiB limit and ship this in 3.13.0. |
why no backport to 3.12? |
Because previously there was no limit and now there is, and any system where STOMP frame size exceeds it will run into rejected publishes. |
I see it more like a critical bug fix. But I'll gladly accept your POV. |
Maybe a higher limit such as 4 MiB would be acceptable. I'm OK with using that and backporting. Let me bump the limit one more time. |
The OCI build failures seem unrelated. |
STOMP: introduce a max frame size limit (backport #8802)
Proposed Changes
Add frame size limit.
The default is 4 MiB.
Cloeses #2567.
Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.md
documentFurther Comments
I would like to have it inside parser, it's way more intrusive in parser. It's a work in progress, but this size limit needed urgently so here it is. I will migrate it to parser via bigger PR.