]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1983: Update the read timeout when reading from an CONNECT tunnel
authorhno <>
Sat, 2 Jun 2007 18:01:34 +0000 (18:01 +0000)
committerhno <>
Sat, 2 Jun 2007 18:01:34 +0000 (18:01 +0000)
src/tunnel.cc

index 3fe2976e6579b8a3c4aa026c981ceb995bb069e7..89c5ebb15de03df5e9ae698ddf8c13dcada361df 100644 (file)
@@ -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);