Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367485 - HttpExchange canceled before response do not release connection
Summary: HttpExchange canceled before response do not release connection
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: client (show other bugs)
Version: 7.6.0.RC0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.5.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 05:43 EST by Simone Bordet CLA
Modified: 2011-12-23 05:52 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Bordet CLA 2011-12-23 05:43:59 EST
If an HttpExchange is sent and canceled before the response arrives, its correspondent connection is closed, but never released from HttpDestination._connection list.

This is bad if the number of connections is limited (e.g. HttpClient.maxConnectionsPerAddress == 1) because no other exchange can be sent: the HttpDestination will wait for someone to release a connection, but this never happens.
Comment 1 Simone Bordet CLA 2011-12-23 05:52:49 EST
Fixed. Now we return the connection when we close it, so that the connection will be released.