mirror of
https://github.com/rclone/rclone.git
synced 2026-10-28 14:28:38 -04:00
A connection returned after an error without an FTP reply code can no longer be trusted, so close it instead of returning it to the pool. Errors carrying an FTP reply code still get a NOOP liveness probe. Add a unit test driving putFtpConnection against a fake FTP server covering network-error discard, live-connection pooling after an FTP reply-code error, and discard when the NOOP probe fails.