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 2021/08/10 08:35:00 UTC

[jira] [Commented] (HTTPCLIENT-2168) Calling cancel on Future returned by InternalHttpAsyncClient gives incorrect boolean result

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17396538#comment-17396538 ] 

Oleg Kalnichevski commented on HTTPCLIENT-2168:
-----------------------------------------------

[~hnguyen72829] My recommendation would be to upgrade to HttpClient 5.1. Please do feel free to propose a fix by submitting a patch against this SVN branch

[http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/]

Oleg

> Calling cancel on Future returned by InternalHttpAsyncClient gives incorrect boolean result
> -------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-2168
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2168
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async)
>            Reporter: H Nguyen
>            Priority: Minor
>         Attachments: FutureWrapper.png, InternalHttpAsyncClient.png
>
>
> *Problem:* I used InternalHttpAsyncClient.execute() to perform a file download from the internet. However when I tried to cancel the future, the boolean returned is always false because it's being cancelled twice (first time successful, the second time it's already canceled so it returned false). 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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