server: update comment

This commit is contained in:
Stéphane Lepin 2019-04-26 13:55:21 +02:00
parent 6a10662bc4
commit 1bd3297055

View File

@ -182,10 +182,10 @@ void WSServer::onMessage(connection_hdl hdl, server::message_ptr message)
_server.send(hdl, response, websocketpp::frame::opcode::text); _server.send(hdl, response, websocketpp::frame::opcode::text);
locker.relock(); locker.relock();
// In multithreaded processing this would be problematic to put back // In multithreaded processing this is be problematic to put back
// a copy of the connection properties, because there might conflicts // a copy of the connection properties, because there might conflicts
// between several simultaneous handlers. // between several simultaneous handlers.
// In our case, it's fine because all messages are processed in one thread. // TODO conflicts handling
_connectionProperties[hdl] = connProperties; _connectionProperties[hdl] = connProperties;
locker.unlock(); locker.unlock();
}); });