]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
transfer: abort pause send when connection is marked for closing
authorDmitry Karpov <dkarpov@roku.com>
Wed, 29 Nov 2023 20:49:06 +0000 (12:49 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Nov 2023 08:30:51 +0000 (09:30 +0100)
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

lib/transfer.c

index e7158aa3ab0f8018cd6e7b516cd0970884f419a9..96f1fde7559a75a7f7f9684b349e08c8bc81ab3e 100644 (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: