{"author":"Stefan Eissing","author_email":"stefan@eissing.org","author_time":1749800620,"commit_time":1749972145,"committer":"Jay Satiro","committer_email":"raysatiro@yahoo.com","hash":"66d35ee5d4c184fff90d545426ca4525c6ad966d","message":"lib: avoid reusing unclean connection\n\nWhen `curl_easy_cleanup()` is invoked while still being part\nof a multi handle, the code will auto-remove it. But since the\nconnection was detached first, the code in\n`curl_multi_remove_handle()` that invalidates dirty connections\ndid not bite.\n\nAttach the connection *after* the possible remove from a multi\nhandle, so that connection reuse can be prevented.\n\nAdd test753 to reproduce and verify the fix. This required adding\nthe new debug env var CURL_FTP_PWD_STOP, to have a transfer return\nfrom multi_perform() early with a connection that does not show\nand pending input.\n\nReported-by: Brian Harris\n\nFixes https://github.com/curl/curl/issues/17578\nCloses https://github.com/curl/curl/pull/17607\n","parents":["17f2a220a99db30bacd66df4df677dfb0a18b405"],"tree_hash":"0dab20649c1eb4767dbad3816b3529985fab630c"}