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 2011/09/04 13:50:09 UTC

[jira] [Updated] (HTTPCORE-272) AsyncNHttpServiceHandler does not react when long polling clients disconnect

     [ https://issues.apache.org/jira/browse/HTTPCORE-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCORE-272:
---------------------------------------

    Fix Version/s: 4.2-alpha2

> AsyncNHttpServiceHandler does not react when long polling clients disconnect
> ----------------------------------------------------------------------------
>
>                 Key: HTTPCORE-272
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-272
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.1.3
>            Reporter: Geir Harald Hansen
>            Priority: Minor
>             Fix For: 4.2-alpha2
>
>
> When using NHttpRequestHandler and in its handle() method storing the NHttpResponseTrigger and HttpResponse for later, to implement long polling, AsyncNHttpServiceHandler does not react when clients disconnect. It does react (its close() method is invoked) if other connections are closed, though. Its close() method is also called later when trying to write to the connection.
> Order of events:
> 1. NHttpRequestHandler.handle() invoked, trigger and response stored
> 2. Client disconnects - connection goes to CLOSE_WAIT
> 3. Connection goes out of CLOSE_WAIT and disappears
> 4. After a few minutes I try to use the NHttpResponseTrigger to send a response
> 5. Now AsyncNHttpServiceHandler reacts and tells me the connection has closed
> It would be useful if AsyncNHttpServiceHandler was told of closed connections immediately so resources are not wasted preparing data for clients that are no longer there.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org