curl/tests/http/testenv
Stefan Eissing 84ecfb3ecc
FTP: fix TLS session reuse on the data connection
FTP servers using SSL can be configured to check TLS session reuse on
the DATA connection. They hand out a new session on every CONTROL
connect and require to see the client using exactly that one when
up-/downloading on DATA.

This means:

1. We have to configure the SSL filter on the DATA connection with
   exactly the same peers.

2. We have to remember the SSL session on the CONTROL connection -
   separately from the session cache. The SSL filter on the DATA
   connection then looks for a session at the CONTROL filter and, if
   present, uses that.

Tests:

Enable `require_ssl_reuse` in our pytest setup for vsftpd. This
reproduces the problem reported in #22225 and verifies the fix.

Skip ftp+SSL pytests for rustls, as we have no possibility to reuse
sessions in that backend.

Schannel: we do not run these tests with the backend. I expect it has
similar problems but am not able to verify.

Reported-by: Laurent Sabourin
Fixes #22225
Closes #22246
2026-07-02 17:39:04 +02:00
..
mod_curltest mod_curltest: fix compiler warnings 2026-06-29 14:27:56 +02:00
__init__.py pytest: adding support for dnsd test server 2026-04-10 14:29:29 +02:00
caddy.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
certs.py pytest: fix remaining code checker warnings 2026-06-09 12:30:16 +02:00
client.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
curl.py pytest: use Optional[], adjust whitespace 2026-06-09 13:24:09 +02:00
dante.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
dnsd.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
env.py h3-proxy: fixes around H3 proxy 2026-05-28 14:41:27 +02:00
h2o.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
httpd.py pytest: check 429 handling 2026-04-17 22:17:50 +02:00
nghttpx.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
ports.py pytest: bind to localhost 2025-09-10 00:55:07 +02:00
sshd.py pytest: close file handles after use (cont.), and tidy-ups 2026-06-09 10:24:07 +02:00
vsftpd.py FTP: fix TLS session reuse on the data connection 2026-07-02 17:39:04 +02:00
ws_echo_server.py tidy-up: miscellaneous 2026-06-09 11:07:55 +02:00