summaryrefslogtreecommitdiff
path: root/lib/ws.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-02-27 16:55:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-02-28 00:38:21 +0100
commit3b23dbeec1e235f1c9af7c8c2660ca7e53ef6204 (patch)
tree1b128a242590e12d05bba348d80ced1aa17c24fb /lib/ws.c
parent788c6b38644c4fe761e39dbab00fb03906489254 (diff)
downloadcurl-3b23dbeec1e235f1c9af7c8c2660ca7e53ef6204.tar.gz
ws: keep the socket non-blocking
Reported-by: marski on github Fixes #10615 Closes #10625
Diffstat (limited to 'lib/ws.c')
-rw-r--r--lib/ws.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/ws.c b/lib/ws.c
index 0fc5e56ae..e8495dcfc 100644
--- a/lib/ws.c
+++ b/lib/ws.c
@@ -166,10 +166,6 @@ CURLcode Curl_ws_accept(struct Curl_easy *data,
}
k->upgr101 = UPGR101_RECEIVED;
- if(data->set.connect_only)
- /* switch off non-blocking sockets */
- (void)curlx_nonblock(conn->sock[FIRSTSOCKET], FALSE);
-
return result;
}
@@ -750,9 +746,6 @@ CURLcode Curl_ws_disconnect(struct Curl_easy *data,
(void)data;
(void)dead_connection;
Curl_dyn_free(&wsc->early);
-
- /* make sure this is non-blocking to avoid getting stuck in shutdown */
- (void)curlx_nonblock(conn->sock[FIRSTSOCKET], TRUE);
return CURLE_OK;
}