From: wessels <> Date: Tue, 26 Mar 1996 12:14:46 +0000 (+0000) Subject: add stallDelay config X-Git-Tag: SQUID_3_0_PRE1~6386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5c2296261cfa2a8d637895db35d472189217f43;p=thirdparty%2Fsquid.git add stallDelay config --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index be92c5b0ba..c6374426f1 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,4 +1,4 @@ -/* $Id: cache_cf.cc,v 1.2 1996/02/29 07:23:05 wessels Exp $ */ +/* $Id: cache_cf.cc,v 1.3 1996/03/26 05:14:46 wessels Exp $ */ #include "config.h" #include @@ -71,6 +71,7 @@ static struct { int commonLogFormat; int debugLevel; int neighborTimeout; + int stallDelay; int singleParentBypass; struct { char *host; @@ -136,6 +137,7 @@ static struct { #define DefaultCommonLogFormat 1 /* default on */ #define DefaultQuickAbort 0 /* default off */ #define DefaultNeighborTimeout 2 /* 2 seconds */ +#define DefaultStallDelay 3 /* 3 seconds */ #define DefaultSingleParentBypass 0 /* default off */ stoplist *http_stoplist = NULL; @@ -1556,6 +1558,10 @@ int getDebugLevel() { return Config.debugLevel; } +int getStallDelay() +{ + return Config.stallDelay; +} char *getAppendDomain() { return Config.appendDomain; @@ -1625,6 +1631,7 @@ static void configSetFactoryDefaults() Config.commonLogFormat = DefaultCommonLogFormat; Config.debugLevel = DefaultDebugLevel; Config.neighborTimeout = DefaultNeighborTimeout; + Config.stallDelay = DefaultStallDelay; Config.singleParentBypass = DefaultSingleParentBypass; Config.adminEmail = safe_xstrdup(DefaultAdminEmail); Config.effectiveUser = safe_xstrdup(DefaultEffectiveUser);