{"author":"Stefan Eissing","author_email":"stefan@eissing.org","author_time":1739958754,"commit_time":1740065015,"committer":"Daniel Stenberg","committer_email":"daniel@haxx.se","hash":"df5db8afaf0551768df44dea13b51fe798c3ba47","message":"conn: fix connection reuse when SSL is optional\n\nIn curl 8.12 I tried to improve the logic on how we handle connections\nthat \"upgrade\" to TLS later, e.g. with a STARTTLS. I found the existing\ncode hard to read in this regard. But of course, the \"improvements\" blew\nup in my face.\n\nWe fixed issues with imap, opo3, smtp in 8.12.1, but ftp was no longer\nreusing existing, upgraded control connections as before. This PR adds\nchecks in our pytest FTP tests that verify reuse is happening as\nintended.\n\nI rewrote the logic in url.c again, so that the new test checks now pass.\n\nReported-by: Zenju on github\nFixes #16384\nCloses #16392\n","parents":["f78700814d702c523a7a2c3766a1ca60f3db7edc"],"tree_hash":"c3dc5c5895370af6c0f45d48fe452acc2759ebb4"}