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 2019/10/31 14:53:00 UTC
[jira] [Resolved] (HTTPCLIENT-2021) Can not interrupt a request
with thread.interrupt (hystrix)
[ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org