diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-01-30 09:35:39 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-01-30 15:39:04 +0100 |
commit | 4c48fb493363aeb8019b90f37a2f24b81582d2ac (patch) | |
tree | 57de14fb1ef4e9a09e57809e51d48d1a03d6cf1c /lib/ws.h | |
parent | 097544959ac19bd62ce83c21e3a5bc0ed6d32926 (diff) | |
download | curl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |