]> git.ipfire.org Git - thirdparty/curl.git/commit
connection: terminate after goaway
authorStefan Eissing <stefan@eissing.org>
Thu, 10 Jul 2025 10:16:40 +0000 (12:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 27 Jul 2025 20:49:12 +0000 (22:49 +0200)
commitb453a447ce4e6aa2a352b196fe0b080fea0342da
tree8d983eb2ea269d7f33bb14e955e7154d9d81ec58
parent2ec54556d4e3f3ab551b5298adab0c703d85a463
connection: terminate after goaway

When a multiplex connection (h2/h3) is shutdown by the server, the
reported number of parallel transfers allowed drops to 0.

Determine that when the last transfer is done and terminate the
connection instead of keeping it in the cache.

We detect the drop to 0 also when we try to reuse such a connection, but
if we know this at the time the last transfer is done, we better
terminate it right away.

Have a consistent trace logging to this with the connections current
hostname and port. Adjust test expectations to carry port numbers.

Closes #17884
lib/cfilters.c
lib/multi.c
tests/data/test1506
tests/data/test1510
tests/data/test1542
tests/data/test2402
tests/data/test2404
tests/data/test2502