]> git.ipfire.org Git - thirdparty/curl.git/commit
url: ConnectionExists revisited
authorStefan Eissing <stefan@eissing.org>
Tue, 21 Nov 2023 14:46:41 +0000 (15:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 22 Nov 2023 14:10:58 +0000 (15:10 +0100)
commit1c37d472a01c12ec9f8c7f7fc037448486a3b159
treef5cd85487a7d6afce419741c15b8ccebb3dd7e47
parent9a8bb20d4819b3eddfbb405c0045ca85137b0ff6
url: ConnectionExists revisited

- have common pattern of `if not match, continue`
- revert pages long if()s to return early
- move dead connection check to later since it may
  be relatively expensive
- check multiuse also when NOT building with NGHTTP2
- for MULTIUSE bundles, verify that the inspected
  connection indeed supports multiplexing when in use
  (bundles may contain a mix of connection, afaict)

Closes #12373
lib/url.c