You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "David J. M. Karlsen (JIRA)" <ji...@apache.org> on 2007/01/13 20:42:27 UTC

[jira] Created: (HTTPCLIENT-621) connectionManager.getParams().setConnectionTimeout( > connectionTimeout ) causes no request retrying

connectionManager.getParams().setConnectionTimeout(  > connectionTimeout ) causes no request retrying
-----------------------------------------------------------------------------------------------------

                 Key: HTTPCLIENT-621
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-621
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 3.1 Beta 1
         Environment: Windows 2000
            Reporter: David J. M. Karlsen
             Fix For: 3.1 Final


If 

connectionManager.getParams().setConnectionTimeout( connectionTimeout );

is set no request retries will be performed:

ttpClient.getParams().setParameter( HttpMethodParams.RETRY_HANDLER, new
DefaultHttpMethodRetryHandler( numRetries, false ) );  //false or true - still won't retry if setConnectionTimeout is set numRetries is > 1.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (HTTPCLIENT-621) connectionManager.getParams().setConnectionTimeout( > connectionTimeout ) causes no request retrying

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464611 ] 

Oleg Kalnichevski commented on HTTPCLIENT-621:
----------------------------------------------

David,

This is the expected behavior. The default method retry handler does not retry failed requests if InterruptedIOException is thrown. Do not you think it is perfectly reasonable to expect the connection to unblock after connectionTimeout milliseconds and not after numRetries * connectionTimeout milliseconds?

> connectionManager.getParams().setConnectionTimeout(  > connectionTimeout ) causes no request retrying
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-621
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-621
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.1 Beta 1
>         Environment: Windows 2000
>            Reporter: David J. M. Karlsen
>             Fix For: 3.1 Final
>
>
> If 
> connectionManager.getParams().setConnectionTimeout( connectionTimeout );
> is set no request retries will be performed:
> ttpClient.getParams().setParameter( HttpMethodParams.RETRY_HANDLER, new
> DefaultHttpMethodRetryHandler( numRetries, false ) );  //false or true - still won't retry if setConnectionTimeout is set numRetries is > 1.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (HTTPCLIENT-621) connectionManager.getParams().setConnectionTimeout( > connectionTimeout ) causes no request retrying

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-621.
------------------------------------------

    Resolution: Won't Fix

> connectionManager.getParams().setConnectionTimeout(  > connectionTimeout ) causes no request retrying
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-621
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-621
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.1 Beta 1
>         Environment: Windows 2000
>            Reporter: David J. M. Karlsen
>             Fix For: 3.1 Final
>
>
> If 
> connectionManager.getParams().setConnectionTimeout( connectionTimeout );
> is set no request retries will be performed:
> ttpClient.getParams().setParameter( HttpMethodParams.RETRY_HANDLER, new
> DefaultHttpMethodRetryHandler( numRetries, false ) );  //false or true - still won't retry if setConnectionTimeout is set numRetries is > 1.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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