← Commit list

664d00d5db

Filippo Tedeschi
Filippo Tedeschi
2026-09-25
SUCCESS Duration: 407s

Subject

ws: do not auto-pong in raw mode

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/ws.c+2 -2
@@ -669,7 +669,7 @@ static CURLcode ws_cw_dec_next(const uint8_t *buf, size_t buflen,
struct ws_cw_dec_ctx *ctx = user_data;
struct Curl_easy *data = ctx->data;
struct websocket *ws = ctx->ws;
- bool auto_pong = !data->set.ws_no_auto_pong;
+ bool auto_pong = !data->set.ws_raw_mode && !data->set.ws_no_auto_pong;
curl_off_t remain;
CURLcode result;
@@ -1534,7 +1534,7 @@ static CURLcode ws_client_collect(const uint8_t *buf, size_t buflen,
{
struct ws_collect *ctx = userp;
struct Curl_easy *data = ctx->data;
- bool auto_pong = !data->set.ws_no_auto_pong;
+ bool auto_pong = !data->set.ws_raw_mode && !data->set.ws_no_auto_pong;
curl_off_t remain;
CURLcode result = CURLE_OK;