[ https://issues.apache.org/jira/browse/HTTPCLIENT-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18001229#comment-18001229 ]
ASF subversion and git services commented on HTTPCLIENT-2379: ------------------------------------------------------------- Commit 4086951973ef9c83e8340e1eca88e3cb61dacea5 in httpcomponents-client's branch refs/heads/5.5.x from Arturo Bernal [ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=408695197 ] HTTPCLIENT-2379: PerRoutePool.release now decrements the counter first and keeps the entry in the map until the count reaches zero, regardless of whether the connection is still open. The entry is handed back to the parent pool exactly once—on that final release—and any attempt to release an entry that was never leased now raises an IllegalStateException. (#663) (cherry picked from commit b1efda3a35e5b991353c54e0d2ec17d7c6dcc299) > Multiple removal of same PoolEntry causes IllegalStateException in > H2SharingConnPool > ------------------------------------------------------------------------------------ > > Key: HTTPCLIENT-2379 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2379 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (async) > Affects Versions: 5.5 > Reporter: yhzdys > Priority: Major > Fix For: 5.5.1, 5.6-alpha1 > > Attachments: > HTTPCLIENT-2379__release_of_closed___ivalid_pool_entries_by_H2SharingConnPool_can_cause_in.patch > > Time Spent: 2h 40m > Remaining Estimate: 0h > > After enabling messageMultiplexing, the H2SharingConnPool is used to reuse > PoolEntry. > When making more than one request using the same connection, if the > connection is closed, > the pool.release(entry, reusable) method at H2SharingConnPool.java:183 will > throw the following exception: > ~~~java > throw new IllegalStateException("Pool entry is not present in the set of > leased entries"); > ~~~ > This occurs because the same connection is being removed multiple times. > https://github.com/yhzdys/httpcomponents-client/commit/c8256b33c3adb45cfa2a49efb2dacfb611da9ac1 -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org