diff options
author | Stefan Eissing <stefan@eissing.org> | 2023-03-13 11:44:26 +0100 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2023-03-14 03:26:57 -0400 |
commit | 06f65f771b52122cf78a6ca3279686679d72bd8e (patch) | |
tree | b47a0795463341a0008c9d80a21e6225fb19077c /lib/transfer.c | |
parent | 7caaeca6f634c1c19e01a3e8451e7de02115b2fb (diff) | |
download | curl-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/transfer.c')
-rw-r--r-- | lib/transfer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 140895113..a28395233 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1234,8 +1234,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, } /* Now update the "done" boolean we return */ - *done = (0 == (k->keepon&(KEEP_RECV|KEEP_SEND| - KEEP_RECV_PAUSE|KEEP_SEND_PAUSE))) ? TRUE : FALSE; + *done = (0 == (k->keepon&(KEEP_RECVBITS|KEEP_SENDBITS))) ? TRUE : FALSE; result = CURLE_OK; out: if(result) |