You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2024/06/03 13:42:00 UTC
[jira] [Commented] (HTTPCLIENT-2329) BasicHttpClientConnectionManager reuses closed connection objects
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851635#comment-17851635 ]
Oleg Kalnichevski commented on HTTPCLIENT-2329:
-----------------------------------------------
[~ttang] Please do specify the exact version of HttpClient you are using. Better yet make sure to upgrade to the latest GA release and re-test your code.
Oleg
> BasicHttpClientConnectionManager reuses closed connection objects
> -----------------------------------------------------------------
>
> Key: HTTPCLIENT-2329
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2329
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Reporter: Teresa Tang
> Priority: Major
>
> In the discardEndpoint method of InternalExecRuntime.java, the endpoint and connection are closed. The manager releases the connection with a timevalue of 0 ms. Because 0 is not considered positive, this leads to the expiration being set to Long.MAX_VALUE. Upon the next connection request, the manager will continue to use this unexpired connection object, even though it is closed.
>
> The intention of the 0 ms timevalue was to have the connection expire immediately and then be discarded so that the manager will create a new connection for the next request.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org