修复webserver死锁
This commit is contained in:
@@ -14,7 +14,7 @@ namespace renderive::web {
|
||||
void Gallery_WebSocket_Controller::handleNewConnection(
|
||||
const drogon::HttpRequestPtr&,
|
||||
const drogon::WebSocketConnectionPtr& connection) {
|
||||
connection->setContext(std::make_shared<Gallery_Plot_Session>(true));
|
||||
connection->setContext(std::make_shared<Gallery_Plot_Session>());
|
||||
connection->setPingMessage("renderive-gallery", std::chrono::seconds(20));
|
||||
LOG_INFO << "Renderive Gallery WebSocket connected: "
|
||||
<< connection->peerAddr().toIpPort();
|
||||
|
||||
Reference in New Issue
Block a user