X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=jcc.c;h=69c01808d841bdadfbbc825a9b8a8b0e8a6e1b1c;hp=511b36bec9776070a49df8acc1067ac2642e0266;hb=ed4b05105372a8745a0e4493f7fb0fe41742ab12;hpb=76241df7485d4437bb78c1accfae97ee71578473;ds=sidebyside diff --git a/jcc.c b/jcc.c index 511b36be..69c01808 100644 --- a/jcc.c +++ b/jcc.c @@ -2221,7 +2221,7 @@ static jb_err receive_encrypted_request(struct client_state *csp) { 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);