/*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
if (name.isEmpty()) {
debugs(3, DBG_CRITICAL, "FATAL: response_delay_pool missing required \"name\" parameter.");
self_destruct();
+ return;
}
char *key = nullptr;
if (!value) {
debugs(3, DBG_CRITICAL, "FATAL: '" << key << "' option missing value");
self_destruct();
+ return;
}
auto it = params.find(SBuf(key));
if (it == params.end()) {
debugs(3, DBG_CRITICAL, "FATAL: response_delay_pool unknown option '" << key << "'");
self_destruct();
+ return;
}
it->second = (it->first == initialBucketPercent) ? xatos(value) : xatoll(value, 10);
}
if (fatalMsg) {
debugs(3, DBG_CRITICAL, "FATAL: must use " << fatalMsg << " options in conjunction");
self_destruct();
+ return;
}
MessageDelayPool *pool = new MessageDelayPool(name,