netty5/codec-stomp/src
Andrey Mizurov 574e8102b6 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:03:16 +02:00
..
main/java/io/netty/handler/codec/stomp Fix allocate additional buffer for encoding stompFrame without readab… (#10150) 2020-03-31 16:03:16 +02:00
test/java/io/netty/handler/codec/stomp Fix allocate additional buffer for encoding stompFrame without readab… (#10150) 2020-03-31 16:03:16 +02:00