rclone / FTP backend
A dead connection kept coming back.
A backup failed, then failed again on every retry. The bug report traced it to rclone handing out the same broken FTP connection each time. My patch closes the connection when the network drops.
| Regression case | Connection |
|---|---|
| Network error | Discard |
| FTP error, liveness check passes | Reuse |
| FTP error, liveness check fails | Discard |