jetty.project/jetty-fcgi
Simone Bordet 0ae2fff361
Fixes #4904 - WebsocketClient creates more connections than needed. (#4911)
* 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>
2020-06-01 15:48:44 +02:00
..
fcgi-client Fixes #4904 - WebsocketClient creates more connections than needed. (#4911) 2020-06-01 15:48:44 +02:00
fcgi-server Updating to version 9.4.30-SNAPSHOT 2020-05-21 13:42:25 -05:00
pom.xml Updating to version 9.4.30-SNAPSHOT 2020-05-21 13:42:25 -05:00