You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Dennis Ju (JIRA)" <ji...@apache.org> on 2012/08/29 20:36:07 UTC

[jira] [Updated] (HTTPCLIENT-1228) HttpGet.abort() / HttpPost.abort() doesn't always abort immediately

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

Dennis Ju updated HTTPCLIENT-1228:
----------------------------------

    Attachment: TestAbort.java

Test code attached.
                
> HttpGet.abort() / HttpPost.abort() doesn't always abort immediately
> -------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1228
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1228
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2.1
>            Reporter: Dennis Ju
>            Priority: Minor
>
> HttpGet.abort() and HttpPost.abort() don't always abort immediately. It works most of the time, but occasionally the connection will block until it times out. I noticed this only happens when I explicitly set a timeout value (HttpConnectionParams.setConnectionTimeout()).
> According to HttpComponent docs, "When an HTTP request is aborted its execution thread blocked in an I/O operation is guaranteed to unblock by throwing a InterruptedIOException".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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