]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/SquidConfig.h
Enable length configuration for pipeline_prefetch queue
[thirdparty/squid.git] / src / SquidConfig.h
index bd3e9fbce8e9f81cd0f7ebf319e6272e7df7ca88..a46a733cadc0ff92a75ab8c2688e47021444624d 100644 (file)
  */
 
 #include "acl/AclAddress.h"
+#include "base/RefCount.h"
 #include "ClientDelayConfig.h"
 #include "DelayConfig.h"
 #include "HelperChildConfig.h"
 #include "HttpHeaderTools.h"
 #include "icmp/IcmpConfig.h"
 #include "ip/Address.h"
-#include "RefCount.h"
+#include "Notes.h"
 #include "YesNoNone.h"
 
 #if USE_SSL
@@ -46,9 +47,10 @@ class sslproxy_cert_adapt;
 #endif
 
 class acl_access;
-class acl_size_t;
+class AclSizeLimit;
 class AclDenyInfoList;
-namespace Mgr {
+namespace Mgr
+{
 class ActionPasswordList;
 } // namespace Mgr
 class CustomLog;
@@ -59,7 +61,8 @@ class RefreshPattern;
 class RemovalPolicySettings;
 class SwapDir;
 
-namespace AnyP {
+namespace AnyP
+{
 class PortCfg;
 }
 
@@ -123,7 +126,7 @@ public:
     int64_t maxChunkedRequestBodySize;
     size_t maxRequestBufferSize;
     size_t maxReplyHeaderSize;
-    acl_size_t *ReplyBodySize;
+    AclSizeLimit *ReplyBodySize;
 
     struct {
         unsigned short icp;
@@ -200,6 +203,7 @@ public:
 #endif
 
         wordlist *redirect;
+        wordlist *store_id;
 #if USE_UNLINKD
 
         char *unlinkd;
@@ -217,6 +221,7 @@ public:
 #endif
 
     HelperChildConfig redirectChildren;
+    HelperChildConfig storeIdChildren;
     time_t authenticateGCInterval;
     time_t authenticateTTL;
     time_t authenticateIpTTL;
@@ -315,6 +320,7 @@ public:
         int nonhierarchical_direct;
         int strip_query_terms;
         int redirector_bypass;
+        int store_id_bypass;
         int ignore_unknown_nameservers;
         int client_pconns;
         int server_pconns;
@@ -326,7 +332,6 @@ public:
 
         int ie_refresh;
         int vary_ignore_expire;
-        int pipeline_prefetch;
         int surrogate_is_remote;
         int request_entities;
         int detect_broken_server_pconns;
@@ -355,6 +360,8 @@ public:
         int client_dst_passthru;
     } onoff;
 
+    int pipeline_max_prefetch;
+
     int forward_max_tries;
     int connect_retries;
 
@@ -378,6 +385,7 @@ public:
         acl_access *brokenPosts;
 #endif
         acl_access *redirector;
+        acl_access *store_id;
         acl_access *reply;
         AclAddress *outgoing_address;
 #if USE_HTCP
@@ -396,6 +404,10 @@ public:
 #if ICAP_CLIENT
         acl_access* icap;
 #endif
+
+        /// spoof_client_ip squid.conf acl.
+        /// nil unless configured
+        acl_access* spoof_client_ip;
     } accessList;
     AclDenyInfoList *denyInfoList;
 
@@ -456,7 +468,7 @@ public:
     } comm_incoming;
     int max_open_disk_fds;
     int uri_whitespace;
-    acl_size_t *rangeOffsetLimit;
+    AclSizeLimit *rangeOffsetLimit;
 #if MULTICAST_MISS_STREAM
 
     struct {
@@ -474,6 +486,8 @@ public:
     HeaderManglers *reply_header_access;
     ///request_header_add access list
     HeaderWithAclList *request_header_add;
+    ///note
+    Notes notes;
     char *coredump_dir;
     char *chroot_dir;
 #if USE_CACHE_DIGESTS
@@ -546,7 +560,9 @@ public:
 
 extern SquidConfig Config;
 
-struct SquidConfig2 {
+class SquidConfig2
+{
+public:
     struct {
         int enable_purge;
         int mangle_request_headers;