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 2007/03/04 16:49:50 UTC

[jira] Commented: (HTTPCORE-53) SessionRequest.cancel doesn't appear to have any effect

    [ 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org