Re: [PATCH] disable optional eCAP services that fail initialization

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 30 Mar 2011 12:01:43 -0600

On 03/18/2011 06:24 PM, Alex Rousskov wrote:
> 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.

Committed to trunk as r11328.

Alex.
Received on Wed Mar 30 2011 - 18:02:00 MDT

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