]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/helper/ChildConfig.h
Make Squid death due to overloaded helpers optional.
[thirdparty/squid.git] / src / helper / ChildConfig.h
index 8e3de227a276375c077ab822cc51c3988cb1751b..f03e6920778803e09a399c61f3bf1b722a9f032a 100644 (file)
@@ -90,6 +90,14 @@ public:
      */
     unsigned int queue_size;
 
+    /// how to handle a serious problem with a helper request submission
+    enum SubmissionErrorHandlingAction {
+        actDie, ///< kill the caller process (i.e., Squid worker)
+        actErr  ///< drop the request and send an error to the caller
+    };
+    /// how to handle a new request for helper that was overloaded for too long
+    SubmissionErrorHandlingAction onPersistentOverload;
+
     /**
      * True if the default queue size is used.
      * Needed in the cases where we need to adjust default queue_size in