(server) give thread name to some usual worker threads / unittest is broken !!

This commit is contained in:
Benjamin Sergeant
2020-02-23 09:44:58 -08:00
parent 8837d5e784
commit 4a9b0b9dfd
4 changed files with 13 additions and 1 deletions

View File

@ -7,6 +7,7 @@
#include "IXWebSocketServer.h"
#include "IXNetSystem.h"
#include "IXSetThreadName.h"
#include "IXSocketConnect.h"
#include "IXWebSocket.h"
#include "IXWebSocketTransport.h"
@ -73,6 +74,8 @@ namespace ix
void WebSocketServer::handleConnection(std::shared_ptr<Socket> socket,
std::shared_ptr<ConnectionState> connectionState)
{
setThreadName("WebSocketServer::" + connectionState->getId());
auto webSocket = std::make_shared<WebSocket>();
_onConnectionCallback(webSocket, connectionState);