]> git.ipfire.org Git - thirdparty/curl.git/commit
http2: better support for --limit-rate
authorStefan Eissing <stefan@eissing.org>
Mon, 15 May 2023 14:45:27 +0000 (16:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 2 Jun 2023 21:06:12 +0000 (23:06 +0200)
commitf4b5c88ab7f14765072da5dc256651e8e13f91f3
tree299b692a02372a0d8c80ec818236bbb0eb675b93
parente054a168302999649ee1b8987dc6806daa0653a1
http2: better support for --limit-rate

- leave transfer loop when --limit-rate is in effect and has
  been received
- adjust stream window size to --limit-rate plus some slack
  to make the server observe the pacing we want
- add test case to confirm behaviour

Closes #11115
lib/http2.c
lib/transfer.c
tests/http/test_02_download.py