mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-21 22:46:04 +00:00
Fixes #4971 - Simplify Connection.upgradeFrom()/upgradeTo(). Now the upgrade-from connection produces a "floating" buffer (not belonging to a pool), so that it can release the original buffer. The upgrade-to connection is free to copy or store this "floating" buffer. Strengthened ByteBufferPool behavior when releasing non-pooled ByteBuffers: the buffer is now discarded. Updated javadocs and all implementations. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>