← Commit list

ebed4aaf01

Stefan Eissing
Stefan Eissing
2026-04-20
SUCCESS Duration: 246s

Subject

ws: fix a blocking curl_ws_send() to report written length correctly

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 -0
@@ -1749,6 +1749,8 @@ static CURLcode ws_send_raw(struct Curl_easy *data, const void *buffer,
if(result)
return result;
result = ws_send_raw_blocking(data, ws, buffer, buflen);
+ if(!result)
+ *pnwritten = buflen;
}
else {
/* We need any pending data to be sent or EAGAIN this call. */