transfer: abort pause send when connection is marked for closing

This handles cases of some bi-directional "upgrade" scenarios
(i.e. WebSockets) where sending is paused until some "upgrade" handshake
is completed, but server rejects the handshake and closes the
connection.

Closes #12428
This commit is contained in:
Dmitry Karpov 2023-11-29 12:49:06 -08:00 committed by Daniel Stenberg
parent a4ed3e766a
commit 6a0dc7cf23
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -733,6 +733,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
on from our side, we need to stop that immediately. */
infof(data, "we are done reading and this is set to close, stop send");
k->keepon &= ~KEEP_SEND; /* no writing anymore either */
k->keepon &= ~KEEP_SEND_PAUSE; /* no pausing anymore either */
}
out: