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

Oleg Kalnichevski commented on HTTPCORE-53:
-------------------------------------------

This is what the default impl of the SessionRequest.cancel() does:

    public void cancel() {
        if (this.key != null) {
            this.key.cancel();
        }
        this.completed = true;
        synchronized (this) {
            notifyAll();
        }
    }

(1) it cancels the selection key thus causing it to be removed from the 
selector's key set. No more I/O for that particular channel.
(2) sets 'completed' flag to true
(3) Notifies threads blocked in SessionRequest.waitFor()

What other actions need to be taken?

> SessionRequest.cancel doesn't appear to have any effect
> -------------------------------------------------------
>
>                 Key: HTTPCORE-53
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-53
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>            Reporter: Anders Wallgren
>
> What's the expected usage of SessionRequest.cancel()?  I call it to cancel a 
> request, and I would expect it to terminate my request somehow, but there's 
> no apparent effect in the IOReactor.

-- 
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