apple / swift-nio

Event-driven network application framework for high performance protocol servers & clients, non-blocking.
https://swiftpackageindex.com/apple/swift-nio/documentation
Apache License 2.0
7.94k stars 645 forks source link

Issue-2734 - Clamp buffer to maximum upon large write operation #2745

Closed ali-ahsan-ali closed 2 weeks ago

ali-ahsan-ali commented 3 months ago

Fix Issue 2734 by clamping storage size after large write operation

Motivation:

Fix Issue 2734

Modifications:

Once a write message that is larger than the capacity of the MessageToByteHandler's maxBufferCapacity, it clamps the byteBuffer down.

ali-ahsan-ali commented 3 months ago

Addressing https://github.com/apple/swift-nio/issues/2734

ali-ahsan-ali commented 3 weeks ago

Hey @weissi LMK when you find time to take a look at this. No rush!

weissi commented 3 weeks ago

Hey @weissi LMK when you find time to take a look at this. No rush!

Commented, looks 99% complete, just three small things

ali-ahsan-ali commented 2 weeks ago

Will cry tears of joy once this gets merged 👍