curl/tests/http/testenv
Stefan Eissing df5db8afaf
conn: fix connection reuse when SSL is optional
In curl 8.12 I tried to improve the logic on how we handle connections
that "upgrade" to TLS later, e.g. with a STARTTLS. I found the existing
code hard to read in this regard. But of course, the "improvements" blew
up in my face.

We fixed issues with imap, opo3, smtp in 8.12.1, but ftp was no longer
reusing existing, upgraded control connections as before. This PR adds
checks in our pytest FTP tests that verify reuse is happening as
intended.

I rewrote the logic in url.c again, so that the new test checks now pass.

Reported-by: Zenju on github
Fixes #16384
Closes #16392
2025-02-20 16:23:35 +01:00
..
mod_curltest http2: auto reset stream on server eos 2024-10-17 23:03:41 +02:00
__init__.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00
caddy.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00
certs.py tests: enable additional ruff Python lint options 2024-10-04 14:03:17 -07:00
client.py tests: allow pytests to run in out-of-tree builds 2024-10-12 10:47:57 -07:00
curl.py tests/scorecard: allow remote server test 2024-10-28 11:41:19 +01:00
env.py client writer: handle pause before deocding 2025-02-20 15:53:18 +01:00
httpd.py client writer: handle pause before deocding 2025-02-20 15:53:18 +01:00
nghttpx.py QUIC: 0RTT for gnutls via CURLSSLOPT_EARLYDATA 2024-12-23 17:07:15 +01:00
ports.py tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
vsftpd.py conn: fix connection reuse when SSL is optional 2025-02-20 16:23:35 +01:00
ws_echo_server.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00