rschmitt opened a new pull request, #898:
URL: https://github.com/apache/httpcomponents-client/pull/898

   When an HTTP/1.1 response contains `Connection: close`, the async client 
begins a graceful TLS shutdown. This causes `SSLIOSession.isOpen()` to 
immediately start returning `false`, so at the completion of the HTTP exchange 
when `AsyncProtocolExec` calls `isEndpointConnected()`, the 
`InternalConnectionEndpoint.isConnected()` method sees that the pool entry's 
underlying connection is reporting `!isOpen()` and calls 
`poolEntry.discardConnection(CloseMode.IMMEDIATE)`, which sends a TCP reset to 
the server.
   
   This commit changes that `discardConnection` call site to use 
`CloseMode.GRACEFUL`, and also provides a reproducer and integration test 
demonstrating the problem.


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