summaryrefslogtreecommitdiff
path: root/lib/vquic/curl_quiche.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2023-03-13 11:44:26 +0100
committerJay Satiro <raysatiro@yahoo.com>2023-03-14 03:26:57 -0400
commit06f65f771b52122cf78a6ca3279686679d72bd8e (patch)
treeb47a0795463341a0008c9d80a21e6225fb19077c /lib/vquic/curl_quiche.c
parent7caaeca6f634c1c19e01a3e8451e7de02115b2fb (diff)
downloadcurl-06f65f771b52122cf78a6ca3279686679d72bd8e.tar.gz
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
Diffstat (limited to 'lib/vquic/curl_quiche.c')
-rw-r--r--lib/vquic/curl_quiche.c2
1 files changed, 1 insertions, 1 deletions
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);