mirror of https://gitee.com/bigwinds/arangodb
properly shutdown SSL tasks
This commit is contained in:
parent
649657d2c4
commit
406a47008e
|
@ -266,6 +266,10 @@ void HttpsServer::handleConnected (socket_t socket, ConnectionInfo& info) {
|
|||
|
||||
// create a https task
|
||||
SocketTask* task = new HttpsAsyncCommTask(this, socket, info, sbio);
|
||||
|
||||
GENERAL_SERVER_LOCK(&this->_commTasksLock);
|
||||
this->_commTasks.insert(dynamic_cast<GeneralCommTask<HttpServer, HttpHandlerFactory>*>(task));
|
||||
GENERAL_SERVER_UNLOCK(&this->_commTasksLock);
|
||||
|
||||
// and register it
|
||||
_scheduler->registerTask(task);
|
||||
|
|
Loading…
Reference in New Issue