Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #274599

Category curl
Changed by Stefan Eissing <stefanohnoyoudont@eissing.org>
Changed at Sun 12 Jul 2026 18:06:21
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision b940cb15666560c86d4f443713a621d737a56c60

Comments

ws: pause/unpause write handling
Websocket frames need to be written individualy, so that applications
can access the frame meta data correctly. This worked until the write
function triggered a pause. Remaining frames accumulated in the "out"
writer's buffer and on unpaused were written in one chunk.

ws decode writer will now stop writing frames when the client writer
is paused. To handle the writing of buffered raw data after an unpause,
client writers have gotten a new "flush" method.

Add pytest test_20_12 with a new client to check handling of pauses
and websocket frames.

Reported-by: Hendrik Hübner
Fixes #22273
Closes #22283

Changed files