-
Notifications
You must be signed in to change notification settings - Fork 644
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
Issue-2734 - Clamp buffer to maximum upon large write operation #2745
Issue-2734 - Clamp buffer to maximum upon large write operation #2745
Conversation
Addressing #2734 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I've left a few notes in the diff.
ebb1d9c
to
825a6b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except the doc nit this look good to me now. I would like @Lukasa to also take a look before merging.
c64d301
to
180b41f
Compare
180b41f
to
a48b322
Compare
3c4c678
to
3da1d3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I'm happy with this if @weissi is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for the patch. I think I found a UB issue and I'm not sure if the reader/writerIndices are handled correctly either
Hey @weissi LMK when you find time to take a look at this. No rush! |
Commented, looks 99% complete, just three small things |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you!
Will cry tears of joy once this gets merged 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you very much for your hard work and persistence with this!
Head branch was pushed to by a user without write access
Fix Issue 2734 by clamping storage size after large write operation
Motivation:
Fix Issue 2734
Modifications:
Result:
Once a write message that is larger than the capacity of the MessageToByteHandler's maxBufferCapacity, it clamps the byteBuffer down.