mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +03:00
websocket: improve handling of 0-len frames
Write out 9-length frames to client's WRITEFUNCTION Read 0-length frames from READFUNCTION *if* the function started a new frame via `curl_ws_start_frame()`. Fixes #18286 Closes #18332 Reported-by: Andriy Druk
This commit is contained in:
parent
fd2a204c23
commit
fa3baabbd8
11 changed files with 275 additions and 141 deletions
|
|
@ -4836,8 +4836,7 @@ static const struct Curl_crtype cr_exp100 = {
|
|||
Curl_creader_def_needs_rewind,
|
||||
Curl_creader_def_total_length,
|
||||
Curl_creader_def_resume_from,
|
||||
Curl_creader_def_rewind,
|
||||
Curl_creader_def_unpause,
|
||||
Curl_creader_def_cntrl,
|
||||
Curl_creader_def_is_paused,
|
||||
cr_exp100_done,
|
||||
sizeof(struct cr_exp100_ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue