mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-13 18:14:49 +00:00
Fixes #4967 - Possible buffer corruption in HTTP/2 session failures Partially reverted the changes introduced in #4855, because they were working only when sends were synchronous. Introduced ByteBufferPool.remove(ByteBuffer) to fix the issue. Now when a concurrent failure happens while frames are being generated or sent, the buffer is discarded instead of being recycled, therefore resolving the buffer corruption. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>