I have also adjusted request_timeout description in squid.conf to clarify that
request_timeout applies to receiving complete HTTP request headers and not
just the first header byte. We reset the connection timeout to
clientLifetimeTimeout after parsing request headers.
https_port was correctly using Config.Timeout.request already.
LOC: Config.Timeout.request
DEFAULT: 5 minutes
DOC_START
- How long to wait for an HTTP request after initial
+ How long to wait for complete HTTP request headers after initial
connection establishment.
DOC_END
typedef CommCbMemFunT<ConnStateData, CommTimeoutCbParams> TimeoutDialer;
AsyncCall::Pointer timeoutCall = JobCallback(33, 5,
TimeoutDialer, connState, ConnStateData::requestTimeout);
- commSetConnTimeout(params.conn, Config.Timeout.read, timeoutCall);
+ commSetConnTimeout(params.conn, Config.Timeout.request, timeoutCall);
connState->readSomeData();