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

   `validateAfterActivity` is primarily a synchronous client feature, since it 
is necessary to attempt to read from the underlying socket in order to discover 
that the connection has been closed by the remote peer. The async client 
doesn't have this issue; the IOReactor is automatically notified when 
connections are closed and removes them from the pool (see 
`SingleCoreIOReactor::processClosedSessions`).
   
   For some reason, however, the async client's connection manager treats 
`validateAfterActivity` as a kind of connection TTL: if the connection has been 
idle longer than the `validateAfterActivity` config value, then the connection 
is closed immediately unless it is an HTTP/2 connection, in which case a PING 
frame is used to check for liveness. Since stale connections are removed from 
the pool automatically as mentioned above, this change simply removes this 
connection close behavior.
   
   A set of integration tests has been added to cover both clients.


-- 
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: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to