jira-importer opened a new issue, #806:
URL: https://github.com/apache/httpcomponents-core/issues/806

   **[Geir Harald 
Hansen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=drharibo)** 
opened 
**[HTTPCORE-272](https://issues.apache.org/jira/browse/HTTPCORE-272?redirect=false)**
 and commented
   
   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.
   
   
   ---
   
   **Affects:** 4.1.3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to