8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ec8ea4 + 744af7b commit 0a4e277Copy full SHA for 0a4e277
cpp_utils/HttpServer.cpp
@@ -171,6 +171,9 @@ class HttpServerTask: public Task {
171
172
173
HttpRequest request(clientSocket); // Build the HTTP Request from the socket.
174
+ if (request.isWebsocket()) { // If this is a WebSocket
175
+ clientSocket.setTimeout(0); // Clear the timeout.
176
+ }
177
request.dump(); // debug.
178
processRequest(request); // Process the request.
179
if (!request.isWebsocket()) { // If this is NOT a WebSocket, then close it as the request
0 commit comments