mirror of
https://github.com/curl/curl.git
synced 2025-03-13 15:37:04 +08:00
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:
parent
a4ed3e766a
commit
6a0dc7cf23
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user