summaryrefslogtreecommitdiff
path: root/lib/ws.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-01-30 09:35:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-30 15:39:04 +0100
commit4c48fb493363aeb8019b90f37a2f24b81582d2ac (patch)
tree57de14fb1ef4e9a09e57809e51d48d1a03d6cf1c /lib/ws.h
parent097544959ac19bd62ce83c21e3a5bc0ed6d32926 (diff)
downloadcurl-4c48fb493363aeb8019b90f37a2f24b81582d2ac.tar.gz
ws: unstick connect-only shutdown
As this mode uses blocking sockets, it must set them back to non-blocking in disconnect to avoid the risk of getting stuck. Closes #10366
Diffstat (limited to 'lib/ws.h')
-rw-r--r--lib/ws.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ws.h b/lib/ws.h
index f07ddb605..9775a04b9 100644
--- a/lib/ws.h
+++ b/lib/ws.h
@@ -60,6 +60,9 @@ CURLcode Curl_ws_accept(struct Curl_easy *data);
size_t Curl_ws_writecb(char *buffer, size_t size, size_t nitems, void *userp);
void Curl_ws_done(struct Curl_easy *data);
+CURLcode Curl_ws_disconnect(struct Curl_easy *data,
+ struct connectdata *conn,
+ bool dead_connection);
#else
#define Curl_ws_request(x,y) CURLE_OK