[PATCH] disable optional eCAP services that fail initialization

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Fri, 18 Mar 2011 18:24:08 -0600

Instead of exiting, disable optional eCAP services that fail initialization.

Report all service initialization failures but mark optional services
down instead of killing Squid by propagating the failure to the Squid
core. An initialization failure of an optional (bypass=1) service
should not lead to Squid quitting because, according to squid.conf, such
a service may be replaced by other services (using adaptation sets) or
simply ignored.

Initialization failures of essential services still lead to fatal
errors, but they are now reported better.

Ecap services should indicate failures by throwing an exception. Squid
reports exception details using std::exception::what() method if possible.

Alex.

Received on Sat Mar 19 2011 - 00:24:18 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 31 2011 - 12:00:04 MDT