The global Adaptation::Icap::TheConfig object is automatically
destroyed when Squid exits. Its destructor destroys Icap::ServiceRep
objects that, in turn, close all open connections in the idle
connections pool. Since this happens after comm_exit has destroyed all
Comm structures associated with those connections, Squid crases.
This is a Measurement Factory project.
WIN32_svcstatusupdate(SERVICE_STOP_PENDING, 10000);
#endif
+#if ICAP_CLIENT
+ Adaptation::Icap::TheConfig.freeService();
+#endif
Store::Root().sync(); /* Flush pending object writes/unlinks */