mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:03:37 +03:00
websocket: add option to disable auto-pong reply
This adds another bitflag on CURLOPT_WS_OPTIONS (CURLWS_NOAUTOPONG) that disables the default and automatic PONG reply in the WebSocket layer. Assisted-by: Calvin Ruocco Closes #16744
This commit is contained in:
parent
21fd64645b
commit
c0df01fd94
15 changed files with 204 additions and 9 deletions
|
|
@ -1384,7 +1384,8 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
#endif /* ! CURL_DISABLE_ALTSVC */
|
||||
#ifndef CURL_DISABLE_WEBSOCKETS
|
||||
case CURLOPT_WS_OPTIONS:
|
||||
data->set.ws_raw_mode = (bool)(arg & CURLWS_RAW_MODE);
|
||||
data->set.ws_raw_mode = (bool)(arg & CURLWS_RAW_MODE);
|
||||
data->set.ws_no_auto_pong = (bool)(arg & CURLWS_NOAUTOPONG);
|
||||
break;
|
||||
#endif
|
||||
case CURLOPT_QUICK_EXIT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue