Community
Participate
Working Groups
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.
Fixed. Now we return the connection when we close it, so that the connection will be released.