HttpConnectionHandlerPool::HttpConnectionHandlerPool(const HttpConnectionHandlerPoolSettings &settings, HttpRequestHandler* requestHandler) : QObject() { this->settings=settings; this->requestHandler=requestHandler; this->sslConfiguration=NULL; loadSslConfig(); cleanupTimer.start(settings.cleanupInterval); connect(&cleanupTimer, SIGNAL(timeout()), SLOT(cleanup())); }
HttpConnectionHandlerPool::HttpConnectionHandlerPool(QSettings* settings, HttpRequestHandler* requestHandler) : QObject() { Q_ASSERT(settings!=0); this->settings=settings; this->requestHandler=requestHandler; this->sslConfiguration=NULL; loadSslConfig(); cleanupTimer.start(settings->value("cleanupInterval",1000).toInt()); connect(&cleanupTimer, SIGNAL(timeout()), SLOT(cleanup())); }