curl/lib/vssh
Stefan Eissing feea968512
conncontrol: reuse handling
Add protocol handler flag `PROTOPT_CONN_REUSE` to indicate that the
protocol allows reusing connections for other tranfers. Add that
to all handlers that support it.

Create connections with `conn->bits.close = FALSE` and remove all
the `connkeep()` calls in protocol handlers setup/connect implementations.
`PROTOPT_CONN_REUSE` assures that the default behaviour applies
at the end of a transfer without need to juggle the close bit.

`conn->bits.close` now serves as an additional indication that a
connection cannot be reused. Only protocol handles that allow
reuse need to set it to override the default behaviour.

Remove all `connclose()` and `connkeep()` calls from connection
filters. Filters should not modify connection flags. They are
supposed to run in eyeballing situations where a filter is just
one of many determining the outcome.

Fix http response header handling to only honour `Connection: close`
for HTTP/1.x versions.

Closes #19333
2025-11-27 14:30:14 +01:00
..
libssh.c conncontrol: reuse handling 2025-11-27 14:30:14 +01:00
libssh2.c conncontrol: reuse handling 2025-11-27 14:30:14 +01:00
ssh.h badwords: fix two exceptions and drop them 2025-11-14 17:32:04 +01:00
vssh.c sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00
vssh.h sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00