mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:51:42 +03:00
websocket: reset upload_done when sending data
Sending websocket data did not clear the "upload_done" flag of the initial HTTP Upgrade request, leading to KEEP_SEND never be cleared. This caused the socket to be polled for INOUT after all the websocket data had been sent. A busy loop. Closes #18476
This commit is contained in:
parent
f333a73892
commit
5fa4fb0c13
1 changed files with 1 additions and 0 deletions
1
lib/ws.c
1
lib/ws.c
|
|
@ -1200,6 +1200,7 @@ CURLcode Curl_ws_accept(struct Curl_easy *data,
|
|||
|
||||
/* start over with sending */
|
||||
data->req.eos_read = FALSE;
|
||||
data->req.upload_done = FALSE;
|
||||
k->keepon |= KEEP_SEND;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue