Skip to content

HttpComponentsHttpInvokerRequestExecutor does not explicitly release connection [SPR-9833] #14466

@spring-projects-issues

Description

@spring-projects-issues

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:

Issue Links:

Referenced from: commits 6ed589d, 93aa411

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions