mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-21 02:00:33 +01:00
Merge pull request #1515 from theAirC/patch-1
Detection of closed websocket connection
This commit is contained in:
commit
0746cc1a0f
@ -119,7 +119,7 @@ public:
|
||||
app.logger().information(Poco::format("Frame received (length=%d, flags=0x%x).", n, unsigned(flags)));
|
||||
ws.sendFrame(buffer, n, flags);
|
||||
}
|
||||
while (n > 0 || (flags & WebSocket::FRAME_OP_BITMASK) != WebSocket::FRAME_OP_CLOSE);
|
||||
while (n > 0 && (flags & WebSocket::FRAME_OP_BITMASK) != WebSocket::FRAME_OP_CLOSE);
|
||||
app.logger().information("WebSocket connection closed.");
|
||||
}
|
||||
catch (WebSocketException& exc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user