server unittest for validating client request / new timeout cancellation handling (need refactoring)
This commit is contained in:
@ -219,19 +219,22 @@ namespace ix
|
||||
}
|
||||
|
||||
auto status = webSocket->connectToSocket(fd);
|
||||
if (!status.success)
|
||||
if (status.success)
|
||||
{
|
||||
// Process incoming messages and execute callbacks
|
||||
// until the connection is closed
|
||||
webSocket->run();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "WebSocketServer::handleConnection() error: "
|
||||
<< status.http_status
|
||||
<< " error: "
|
||||
<< status.errorStr;
|
||||
logError(ss.str());
|
||||
return;
|
||||
}
|
||||
|
||||
// Process incoming messages and execute callbacks
|
||||
// until the connection is closed
|
||||
webSocket->run();
|
||||
|
||||
// Remove this client from our client set
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_clientsMutex);
|
||||
|
Reference in New Issue
Block a user