-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-2734 - Clamp buffer to maximum upon large write operation (#2745)
### Motivation: Fix Issue 2734 ### Modifications: - Added a function to clamp storage by copying bytes and setting new capacity of storage - Adding a function to clamp the capacity of ByteBuffer - Added the ability to specify he maxBufferCapacity to MessageToByteHandler ### Result: Once a write message that is larger than the capacity of the MessageToByteHandler's maxBufferCapacity, it clamps the byteBuffer down. --------- Co-authored-by: Johannes Weiss <[email protected]> Co-authored-by: Cory Benfield <[email protected]> Co-authored-by: Franz Busch <[email protected]> Co-authored-by: Ali Ali <[email protected]>
- Loading branch information
1 parent
c9781cf
commit 8307ad6
Showing
3 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters