]> git.ipfire.org Git - thirdparty/curl.git/commit
hyper: unslow
authorStefan Eissing <stefan@eissing.org>
Mon, 19 Jun 2023 10:11:53 +0000 (12:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Jun 2023 07:11:41 +0000 (09:11 +0200)
commit81e6793ec96aadd780187684c0cb66aa929b4a9f
tree1cf418da587d9362ddb41e067e94f81affd34925
parent65937f0d638f152d955e327d0fdaf14d7c98cb29
hyper: unslow

- refs #11203 where hyper was reported as being slow
- fixes hyper_executor_poll to loop until it is out of
  tasks as advised by @seanmonstar in https://github.com/hyperium/hyper/issues/3237
- added a fix in hyper io handling for detecting EAGAIN
- added some debug logs to see IO results
- pytest http/1.1 test cases pass
- pytest h2 test cases fail on connection reuse. HTTP/2
  connection reuse does not seem to work. Hyper submits
  a request on a reused connection, curl's IO works and
  thereafter hyper declares `Hyper: [1] operation was canceled: connection closed`
  on stderr without any error being logged before.

Fixes #11203
Reported-by: Gisle Vanem
Advised-by: Sean McArthur
Closes #11344
lib/c-hyper.c
tests/http/testenv/curl.py