]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Init and Clean ESI module on startup (mainInitialize) and
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 17 Mar 2009 16:57:05 +0000 (10:57 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 17 Mar 2009 16:57:05 +0000 (10:57 -0600)
shutdown (SquidShutdown).

src/main.cc

index d02d90e0ab754337264df26a4cc6008829741c60..09e17929d52aea59350bd2b10369fae63eb6ef6b 100644 (file)
 #include "adaptation/Config.h"
 #endif
 
+#if USE_SQUID_ESI
+#include "esi/Module.h"
+#endif
+
 #if USE_WIN32_SERVICE
 
 #include "squid_windows.h"
@@ -1061,6 +1065,9 @@ mainInitialize(void)
     Adaptation::Config::Finalize(enableAdaptation);
 #endif
 
+#if USE_SQUID_ESI
+    Esi::Init();
+#endif
 
     debugs(1, 1, "Ready to serve requests.");
 
@@ -1671,6 +1678,11 @@ SquidShutdown()
 
     releaseServerSockets();
     commCloseAllSockets();
+
+#if USE_SQUID_ESI
+    Esi::Clean();
+#endif
+
 #if DELAY_POOLS
 
     DelayPools::FreePools();