OpenSearch/modules/transport-netty4
Tim Brooks ae06a9399a
Fix bug in copying bytes for socket write (#45463)
Currently we take the array of nio buffers from the netty channel
outbound buffer and copy their bytes to a direct buffer. In the process
we mutate the nio buffer positions. It seems like netty will continue to
reuse these buffers. This means than any data that is not flushed in a
call is lost. This commit fixes this by incrementing the positions after
the flush has completed. This is similar to the behavior that
SocketChannel would have provided and netty relied upon.

Fixes #45444.
2019-08-12 15:59:26 -06:00
..
licenses Upgrade to Netty 4.1.38 (#45132) (#45364) 2019-08-09 03:38:14 +02:00
src Fix bug in copying bytes for socket write (#45463) 2019-08-12 15:59:26 -06:00
build.gradle Upgrade to Netty 4.1.38 (#45132) (#45364) 2019-08-09 03:38:14 +02:00