/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
*/
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
* special configurations, for example when redirector_bypass is used.
*/
bool defaultQueueSize;
+
+ /// older stateful helper server reservations may be forgotten
+ time_t reservationTimeout = 64; // reservation-timeout
};
} // namespace Helper