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:
Stefan Eissing 2025-09-04 12:00:48 +02:00 committed by Daniel Stenberg
parent f333a73892
commit 5fa4fb0c13
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1200,6 +1200,7 @@ CURLcode Curl_ws_accept(struct Curl_easy *data,
/* start over with sending */ /* start over with sending */
data->req.eos_read = FALSE; data->req.eos_read = FALSE;
data->req.upload_done = FALSE;
k->keepon |= KEEP_SEND; k->keepon |= KEEP_SEND;
} }