]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Document and alter the pconn idle timeout directives.
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Nov 2011 10:54:37 +0000 (03:54 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Nov 2011 10:54:37 +0000 (03:54 -0700)
Alters the directive names to clarify what they do and adds some more
description to the config file documentation.

Alters the internal config variables to match the new directive names.

Also alters the well known messages in mgr:filedescriptors report a little
to indicate client/server type and adds a standard "Idle " prefix for
easy automated scanning.

doc/release-notes/release-3.2.sgml
src/cf.data.pre
src/client_side.cc
src/pconn.cc
src/structs.h

index 38e7762c4103db4e1852a85e3f37c6f8b0542efa..382af3f774fbe579b188ffaf48ec119fe65acfe3 100644 (file)
@@ -413,6 +413,9 @@ This section gives a thorough account of those changes in three categories:
           destination IP to another source indicated by Host: domain DNS or
           cache_peer configuration. It <em>does not</em> affect Host: validation.
 
+       <tag>client_idle_pconn_timeout</tag>
+       <p>Renamed from <em>persistent_request_timeout</em>.
+
        <tag>cpu_affinity_map</tag>
        <p>New setting for SMP support to map Squid processes onto specific CPU cores.
 
@@ -461,6 +464,9 @@ This section gives a thorough account of those changes in three categories:
        <tag>logfile_daemon</tag>
        <p>Ported from 2.7. Specify the file I/O daemon helper to run for logging.
 
+       <tag>server_idle_pconn_timeout</tag>
+       <p>Renamed from <em>pconn_timeout</em>.
+
        <tag>tproxy_uses_indirect_client</tag>
        <p>Controls whether the indirect client address found in the X-Forwarded-For
        header is used for spoofing instead of the directly connected client address.
@@ -649,6 +655,12 @@ This section gives a thorough account of those changes in three categories:
        <p>The behaviour controlled by this directive is no longer possible.
           It has been replaced by <em>connect_retries</em> option which operates a little differently.
 
+       <tag>pconn_timeout</tag>
+       <p>Renamed to <em>server_idle_pconn_timeout</em>
+
+       <tag>persistent_request_timeout</tag>
+       <p>Renamed to <em>client_idle_pconn_timeout</em>
+
        <tag>referer_log</tag>
        <p>Replaced by the <em>referrer</em> format option on an <em>access_log</em> directive.
 
index 8f3525914ad1f76b45f2a76658da1ac51e123108..434e94b6d6e6c71b3b3c591923fd43506e1105db 100644 (file)
@@ -4658,13 +4658,13 @@ DOC_START
        connection establishment.
 DOC_END
 
-NAME: persistent_request_timeout
+NAME: client_idle_pconn_timeout persistent_request_timeout
 TYPE: time_t
-LOC: Config.Timeout.persistent_request
+LOC: Config.Timeout.clientIdlePconn
 DEFAULT: 2 minutes
 DOC_START
        How long to wait for the next HTTP request on a persistent
-       connection after the previous request completes.
+       client connection after the previous request completes.
 DOC_END
 
 NAME: client_lifetime
@@ -4708,9 +4708,9 @@ DOC_START
        it is recommended to leave OFF.
 DOC_END
 
-NAME: pconn_timeout
+NAME: server_idle_pconn_timeout pconn_timeout
 TYPE: time_t
-LOC: Config.Timeout.pconn
+LOC: Config.Timeout.serverIdlePconn
 DEFAULT: 1 minute
 DOC_START
        Timeout for idle persistent connections to servers and other
index 14918836e94a5a539d39ea050eb1c1d8fc513a49..351de2c09b775a3c9a3f971ff48586146ccca7ce 100644 (file)
@@ -1485,14 +1485,14 @@ ConnStateData::readNextRequest()
 {
     debugs(33, 5, HERE << clientConnection << " reading next req");
 
-    fd_note(clientConnection->fd, "Waiting for next request");
+    fd_note(clientConnection->fd, "Idle client: Waiting for next request");
     /**
      * Set the timeout BEFORE calling clientReadRequest().
      */
     typedef CommCbMemFunT<ConnStateData, CommTimeoutCbParams> TimeoutDialer;
     AsyncCall::Pointer timeoutCall = JobCallback(33, 5,
                                      TimeoutDialer, this, ConnStateData::requestTimeout);
-    commSetConnTimeout(clientConnection, Config.Timeout.persistent_request, timeoutCall);
+    commSetConnTimeout(clientConnection, Config.Timeout.clientIdlePconn, timeoutCall);
 
     readSomeData();
     /** Please don't do anything with the FD past here! */
index 48b5e4d52a57ef6862ee22310193ae1feba0c329..4f75424b6eea50cd5c63ffca0bdf203463ba7772 100644 (file)
@@ -192,7 +192,7 @@ IdleConnList::push(const Comm::ConnectionPointer &conn)
     comm_read(conn, fakeReadBuf_, sizeof(fakeReadBuf_), readCall);
     AsyncCall::Pointer timeoutCall = commCbCall(5,4, "IdleConnList::Timeout",
                                      CommTimeoutCbPtrFun(IdleConnList::Timeout, this));
-    commSetConnTimeout(conn, Config.Timeout.pconn, timeoutCall);
+    commSetConnTimeout(conn, Config.Timeout.serverIdlePconn, timeoutCall);
 }
 
 /// Determine whether an entry in the idle list is available for use.
@@ -417,7 +417,7 @@ PconnPool::push(const Comm::ConnectionPointer &conn, const char *domain)
     assert(!comm_has_incomplete_write(conn->fd));
 
     LOCAL_ARRAY(char, desc, FD_DESC_SZ);
-    snprintf(desc, FD_DESC_SZ, "Idle: %s", aKey);
+    snprintf(desc, FD_DESC_SZ, "Idle server: %s", aKey);
     fd_note(conn->fd, desc);
     debugs(48, 3, HERE << "pushed " << conn << " for " << aKey);
 }
index 4cce1004ab45ad1bf932a393091205c79b72f73f..84952a2ebcad7f9902d405a0852c961d29e14318 100644 (file)
@@ -207,8 +207,8 @@ struct SquidConfig {
         time_t forward;
         time_t peer_connect;
         time_t request;
-        time_t persistent_request;
-        time_t pconn;
+        time_t clientIdlePconn;
+        time_t serverIdlePconn;
         time_t siteSelect;
         time_t deadPeer;
         int icp_query;         /* msec */