[ 
https://issues.apache.org/jira/browse/HTTPCORE-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474127
 ] 

Oleg Kalnichevski commented on HTTPCORE-46:
-------------------------------------------

Hi Anders,

AbstractIOReactor#shutdown should cause an I/O reactor to terminate 
immediately, as it basically closes the underlying selector thus causing the 
termination of the I/O selection loop. Can you think of a case where this may 
be insufficient? Are you having problems shutting down I/O reactors?

Oleg



> Should AbstractMultiWorkerIOReactor.stopWorkers call interrupt before join?
> ---------------------------------------------------------------------------
>
>                 Key: HTTPCORE-46
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-46
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0-alpha4
>            Reporter: Anders Wallgren
>             Fix For: 4.0-alpha4
>
>
> in stopWorkers, shouldn't you call interrupt before join when shutting down 
> the threads, so they don't linger, waiting for some timeout?  Or is it 
> assumed that the socket/channel closure causes an immediate exit?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to