}
}
-Adaptation::Config::Config()
-{
- // XXX: should we init members?
-}
+Adaptation::Config::Config() :
+ onoff(0), service_failure_limit(0), oldest_service_failure(0),
+ service_revival_delay(0)
+{}
// XXX: this is called for ICAP and eCAP configs, but deals mostly
// with global arrays shared by those individual configs
Adaptation::Icap::Config Adaptation::Icap::TheConfig;
-Adaptation::Icap::Config::Config(): preview_enable(0), preview_size(0),
- allow206_enable(0),
+Adaptation::Icap::Config::Config() :
+ preview_enable(0), preview_size(0), allow206_enable(0),
connect_timeout_raw(0), io_timeout_raw(0), reuse_connections(0),
- client_username_header(NULL), client_username_encode(0), repeat(NULL)
+ client_username_header(NULL), client_username_encode(0), repeat(NULL),
+ repeat_limit(0)
{
}
Adaptation::Icap::Config::~Config()
{
- // TODO: delete client_username_header?
+ // no need to free client_username_header, it's done in cf_parser.cci:free_all
}
Adaptation::ServicePointer
return job;
}
-AsyncJob::AsyncJob(const char *aTypeName): typeName(aTypeName), inCall(NULL)
+AsyncJob::AsyncJob(const char *aTypeName) :
+ stopReason(NULL), typeName(aTypeName), inCall(NULL)
{
debugs(93,5, "AsyncJob constructed, this=" << this <<
" type=" << typeName << " [" << id << ']');