From: hno <> Date: Sat, 2 Jun 2007 18:01:34 +0000 (+0000) Subject: Bug #1983: Update the read timeout when reading from an CONNECT tunnel X-Git-Tag: SQUID_3_0_PRE7~229 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f31fb2f90349b72cb5307fb7d0c2419ba1c3643f;p=thirdparty%2Fsquid.git Bug #1983: Update the read timeout when reading from an CONNECT tunnel --- diff --git a/src/tunnel.cc b/src/tunnel.cc index 3fe2976e65..89c5ebb15d 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -1,6 +1,6 @@ /* - * $Id: tunnel.cc,v 1.170 2007/06/02 11:54:26 hno Exp $ + * $Id: tunnel.cc,v 1.171 2007/06/02 12:01:34 hno Exp $ * * DEBUG: section 26 Secure Sockets Layer Proxy * AUTHOR: Duane Wessels @@ -229,6 +229,8 @@ TunnelStateData::readServer(char *buf, size_t len, comm_err_t errcode, int xerrn debugs(26, 3, "tunnelReadServer: FD " << server.fd() << ", read " << len << " bytes"); + commSetTimeout(server.fd(), Config.Timeout.read, tunnelTimeout, this); + if (len > 0) { server.bytesIn(len); kb_incr(&statCounter.server.all.kbytes_in, len);