hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-682) ConnectionManager timeout not used
Date Mon, 13 Aug 2007 10:01:43 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Oleg Kalnichevski resolved HTTPCLIENT-682.

    Resolution: Invalid


You are confusing a connection manager timeout with a connect timeout. Connection manager
timeout is not applicable to the Simple HTTP connection manager because it never blocks waiting
for a connection to become available in the connection pool. It always returns the same connection
object without blocking.


> ConnectionManager timeout not used
> ----------------------------------
>                 Key: HTTPCLIENT-682
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-682
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1
>            Reporter: Wolfgang Winter
> In HttpClientParams a connectionManagerTimeout can be set but is never used. The HttpClient
uses per default the SimpleHttpConnectionManager, this class implements method getConnectionWithTimeout(
>         HostConfiguration hostConfiguration, long timeout). However, the parameter timeout
is not used in the method, despite it's name. The timeout parameter is set with HttpClientParams.connectionManagerTimeout,
therefore it is of no use in the standard framework.
> you can fix this by 
> --> correcting the method SimpleHttpConnectionManager.getConnectionWithTimeout()
> --> extending the Javadoc of SimpleHttpConnectionManager.getConnectionWithTimeout()
and HttpClientParams.setConnectionManagerTimeout() saying, that the timeout parameter is not
used in the standard default implementation.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org

View raw message