From 06f65f771b52122cf78a6ca3279686679d72bd8e Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 13 Mar 2023 11:44:26 +0100 Subject: http2: Use KEEP_SEND_HOLD for flow control in HTTP/2 - use the defined, but so far not used, KEEP_SEND_HOLD bit for flow control based suspend of sending in transfers. Prior to this change KEEP_SEND_PAUSE bit was used instead, but that can interfere with pausing streams from the user side via curl_easy_pause. Fixes https://github.com/curl/curl/issues/10751 Closes https://github.com/curl/curl/pull/10753 --- lib/vquic/curl_quiche.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vquic/curl_quiche.c') diff --git a/lib/vquic/curl_quiche.c b/lib/vquic/curl_quiche.c index 0c48c1c2e..87a221cc1 100644 --- a/lib/vquic/curl_quiche.c +++ b/lib/vquic/curl_quiche.c @@ -950,7 +950,7 @@ static int cf_quiche_get_select_socks(struct Curl_cfilter *cf, rv |= GETSOCK_READSOCK(0); /* we're still uploading or the HTTP/3 layer wants to send data */ - if(((k->keepon & (KEEP_SEND|KEEP_SEND_PAUSE)) == KEEP_SEND) + if(((k->keepon & KEEP_SENDBITS) == KEEP_SEND) && stream_is_writeable(cf, data)) rv |= GETSOCK_WRITESOCK(0); -- cgit v1.2.1