DefaultHttpRequestRetryHandler#retryRequest should not retry aborted requests
-----------------------------------------------------------------------------

                 Key: HTTPCLIENT-1120
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1120
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.1.2
            Reporter: Sebb


DefaultHttpRequestRetryHandler#retryRequest incorrectly retries aborted 
requests; I have seen the following log messages in JMeter:

org.apache.http.impl.client.DefaultHttpClient: I/O exception 
(java.net.SocketException) caught when processing request: socket closed
org.apache.http.impl.client.DefaultHttpClient: Retrying request

and

org.apache.http.impl.client.DefaultHttpClient: I/O exception 
(java.net.BindException) caught when connecting to the target host: Address 
already in use: connect
org.apache.http.impl.client.DefaultHttpClient: Retrying connect

The abort() method sets the isAborted() flag, but the retry handler does not 
check it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to