[
https://issues.apache.org/jira/browse/HTTPCLIENT-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-2021.
-------------------------------------------
Resolution: Invalid
[~sbernard] The stack overflow thread is wrong. Please use
{{HttpUriRequest#abort}} method provided by HttpClient to abort ongoing HTTP
request execution.
Oleg
> Can not interrupt a request with thread.interrupt (hystrix)
> -----------------------------------------------------------
>
> Key: HTTPCLIENT-2021
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2021
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Reporter: Simon
> Priority: Critical
>
> I send a POST request in an [Hystrix|https://github.com/Netflix/Hystrix/wiki]
> command.
> Hystrix is able to abort the command if the result is not get in a given
> amount of time.
> This is possible to interrupt the thread which execute the command on this
> timeout. (Releasing thread sooner instead of letting it finished its job)
> But it seems this does not really do anything with httpclient :(.
> Here you can find a [stackoverflow
> thread|https://stackoverflow.com/questions/38077687/hystrix-apache-http-client-requests-are-not-interrupted]
> about that.
> (I tested with the current version I use 4.5.2 and the last 4.5.10, same
> behavior)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]