From a77a8e7ecb406c5c442cf20f19ad0d125ffb01a0 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Mon, 1 Jun 2020 13:34:46 +0300 Subject: [PATCH] comment (http response) --- components/net/cpp/src/ws_internal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/net/cpp/src/ws_internal.cpp b/components/net/cpp/src/ws_internal.cpp index 780a54c65..28318ab5b 100644 --- a/components/net/cpp/src/ws_internal.cpp +++ b/components/net/cpp/src/ws_internal.cpp @@ -210,6 +210,8 @@ bool ftl::net::ws_connect(SOCKET sockfd, const URI &uri, const ws_options &optio http += "Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==\r\n"; http += "Sec-WebSocket-Version: 13\r\n"; http += "\r\n"; + // TODO: Check/process HTTP response code + int rc = ::send(sockfd, http.c_str(), (int)http.length(), 0); if (rc != (int)http.length()) { LOG(ERROR) << "Could not send Websocket http request... (" << rc << ", " << errno << ")"; -- GitLab