netty5/codec-stomp/src
Andrey Mizurov 7309f2a13d
Fix allocate additional buffer for encoding stompFrame without readab… (#10150)
Motivation:

Not always STOMP frames contain any payload some times it just headers. So we wan't allocate additional buffer with NULL content for this situation.

Modification:

Modify StompSubframeEncoder to check if content is readable or not. If content is not readable just add NULL byte to encoded header buffer.

Result:

Less allocations
2020-03-31 16:02:06 +02:00
..
main/java/io/netty/handler/codec/stomp Fix allocate additional buffer for encoding stompFrame without readab… (#10150) 2020-03-31 16:02:06 +02:00
test/java/io/netty/handler/codec/stomp Fix allocate additional buffer for encoding stompFrame without readab… (#10150) 2020-03-31 16:02:06 +02:00