mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-21 06:05:19 +00:00
* Fixes #4904 - WebsocketClient creates more connections than needed. Fixed connection pool's `acquire()` methods to correctly take into account the number of queued requests. Now the connection creation is conditional, triggered by explicit send() or failures. The connection creation is not triggered _after_ a send(), where we aggressively send more queued requests - or in release(), where we send queued request after a previous one was completed. Now the connection close/removal aggressively sends more requests triggering the connection creation. Also fixed a collateral bug in `BufferingResponseListener` - wrong calculation of the max content length. Restored `ConnectionPoolTest` that was disabled in #2540, cleaned it up, and let it run for hours without failures. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>