"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
ftp: fix lockup when using concurrency limit on failed connections #3984
Nick Craig-Wood28f69f25a001
diff --git a/backend/ftp/ftp.go b/backend/ftp/ftp.goindex 7631209da..58bd8cab6 100644--- a/backend/ftp/ftp.go+++ b/backend/ftp/ftp.go@@ -190,7 +190,11 @@ func (f *Fs) getFtpConnection() (c *ftp.ServerConn, err error) {if c != nil {return c, nil}- return f.ftpConnection()+ c, err = f.ftpConnection()+ if err != nil && f.opt.Concurrency > 0 {+ f.tokens.Put()+ }+ return c, err}// Return an FTP connection to the pool