mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
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
This commit is contained in:
parent
097544959a
commit
4c48fb4933
4 changed files with 18 additions and 4 deletions
|
|
@ -151,7 +151,7 @@ const struct Curl_handler Curl_handler_ws = {
|
|||
http_getsock_do, /* doing_getsock */
|
||||
ZERO_NULL, /* domore_getsock */
|
||||
ZERO_NULL, /* perform_getsock */
|
||||
ZERO_NULL, /* disconnect */
|
||||
Curl_ws_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* attach connection */
|
||||
|
|
@ -205,7 +205,7 @@ const struct Curl_handler Curl_handler_wss = {
|
|||
http_getsock_do, /* doing_getsock */
|
||||
ZERO_NULL, /* domore_getsock */
|
||||
ZERO_NULL, /* perform_getsock */
|
||||
ZERO_NULL, /* disconnect */
|
||||
Curl_ws_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* attach connection */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue