jira-importer opened a new issue, #1180: URL: https://github.com/apache/httpcomponents-core/issues/1180
**[Danmeng Tu](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tudanmeng)** opened **[HTTPCORE-653](https://issues.apache.org/jira/browse/HTTPCORE-653?redirect=false)** and commented Recently I noticed the I/O Reactor of my application always shuts down unexpectedly, so I tried to remote debug my application and found shutting down process is triggered by CancelledKeyException, and since I'm not an expert of NIO therefore I did my best to assist you to diagnose the problem with thread dump and stacktrace attached. Apart from that, I also attached the code of how I use HttpClient in order to make sure, such exception is not caused in correct usage of HttpClient. Let me know if you need more details please. [^AbstractHttpClientDownloader.java] [^LimitedAsyncResponseConsumer.java] And I found a similar _processEvent_ in HttpAsyncClient 4.1.4, and it seems to be _CancelledKeyException_ is handled without shutting the reactor down. HttpAsyncClient 4.1.4 !Screen Shot 2020-11-06 at 00.05.00.png! HttpClient 5.0.3 !Screen Shot 2020-11-05 at 23.50.46.png! Exception details !Screen Shot 2020-11-05 at 23.12.44.png! !Screen Shot 2020-11-05 at 23.12.53.png! Thank you very much. --- **Affects:** 5.0.2 **Attachments:** - [AbstractHttpClientDownloader.java](https://issues.apache.org/jira/secure/attachment/13014790/AbstractHttpClientDownloader.java) (_8.69 kB_) - [LimitedAsyncResponseConsumer.java](https://issues.apache.org/jira/secure/attachment/13014789/LimitedAsyncResponseConsumer.java) (_3.64 kB_) - [Screen Shot 2020-11-05 at 23.12.44.png](https://issues.apache.org/jira/secure/attachment/13014782/Screen+Shot+2020-11-05+at+23.12.44.png) (_712.56 kB_) - [Screen Shot 2020-11-05 at 23.12.53.png](https://issues.apache.org/jira/secure/attachment/13014783/Screen+Shot+2020-11-05+at+23.12.53.png) (_766.72 kB_) - [Screen Shot 2020-11-05 at 23.50.46.png](https://issues.apache.org/jira/secure/attachment/13014788/Screen+Shot+2020-11-05+at+23.50.46.png) (_235.74 kB_) - [Screen Shot 2020-11-06 at 00.05.00.png](https://issues.apache.org/jira/secure/attachment/13014791/Screen+Shot+2020-11-06+at+00.05.00.png) (_377.32 kB_) - [threads_report.txt](https://issues.apache.org/jira/secure/attachment/13014784/threads_report.txt) (_74.55 kB_) **Backported to:** [5.0.3](https://github.com/apache/httpcomponents-core/milestone/72?closed=1) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
