-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
Gerrit Brehmer opened SPR-9833 and commented
We are using HttpComponentsHttpInvokerRequestExecutor with HttpClient v4.2.1 with PoolingClientConnectionManager. We notice in our live environment, that in case of an error, the connection is not gracefully released.
I have attached a TestCase. The first one consumes the entity at the end (by default there are callback handler registered, which releases the connection after consuming the entity). Otherwise explicitly releasing connection is also possible to fix the problem.
But currently the HttpComponentsHttpInvokerRequestExecutor does not consume the entity after an HTTP error (or releasing connection explicitly) so the connection is not released and not available for other requests.
Affects: 3.1.2
Attachments:
- HttpClientTest.java (2.80 kB)
Issue Links:
- Upgrade commons-httpclient from version 4.1 to version 4.2 [SPR-9475] #14110 Upgrade commons-httpclient from version 4.1 to version 4.2