Previously the keep-alive-timeout was being used which
was inappropriate as we are waiting for data that belongs
to the same request.
Sponsored by: Robert Klemme
{
log_error(LOG_LEVEL_HEADER, "Reading encrypted headers");
if (!is_ssl_pending(&(csp->mbedtls_client_attr.ssl)) &&
- !data_is_available(csp->cfd, (int)csp->config->keep_alive_timeout))
+ !data_is_available(csp->cfd, csp->config->socket_timeout))
{
log_error(LOG_LEVEL_CONNECT,
"Socket %d timed out while waiting for client headers", csp->cfd);