java-dogstatsd-client icon indicating copy to clipboard operation
java-dogstatsd-client copied to clipboard

Should ByteBuffer be cleared when exceptions are thrown?

Open shawnsong opened this issue 3 years ago • 0 comments

Should we clear the buffer here as well?

When an exception is thrown from clientChannel.write(buffer);, the flipped buffer is put back to the pool in the next run of the while loop without being cleared. Is this expected?

shawnsong avatar Jul 26 '22 01:07 shawnsong