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

Oleg Kalnichevski commented on HTTPCLIENT-2127:
-----------------------------------------------

[~tudanmeng] Shutdown of the reactor in case of a single cancelled channel 
looks wrong. I will look into it.

Oleg

> CancelledKeyException Triggers Reactor to Shutdown
> --------------------------------------------------
>
>                 Key: HTTPCLIENT-2127
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2127
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async)
>    Affects Versions: 5.0.3
>         Environment: linux
>            Reporter: Danmeng Tu
>            Priority: Major
>             Fix For: 5.0.4, 5.1-beta1
>
>         Attachments: AbstractHttpClientDownloader.java, 
> LimitedAsyncResponseConsumer.java, Screen Shot 2020-11-05 at 23.12.44.png, 
> Screen Shot 2020-11-05 at 23.12.53.png, Screen Shot 2020-11-05 at 
> 23.50.46.png, Screen Shot 2020-11-06 at 00.05.00.png, threads_report.txt
>
>
> 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.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to