periodically cleanup session's stale connections
allow to pass session object to http client
shrink input buffer for each keepalive request
http client write flow control