ffang opened a new pull request, #3701:
URL: https://github.com/apache/cxf/pull/3701

   … is refused
   
   When the request of an asynchronous call failed, for example because the 
connection was refused, the failure callback of HttpClientHTTPConduit recorded 
the exception on the out message and closed the stream. The caller closing the 
stream afterwards then found the exception and did not schedule the response 
handling, as it takes it as reported already, so neither the response nor the 
fault observer was ever called. This happened whenever the connection failed 
before the caller closed the stream, for example while it was still writing a 
large body, or when sending a small one from close().
   
   The failure callback now only releases a writer waiting for the connection 
or blocked on the body, by closing the body stream. The caller's close() 
schedules the response handling, which gets the failure from the future and 
reports it to the fault observer, once. As the callback no longer closes the 
stream, it cannot send a request without a body again either.


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

Reply via email to