Skip to content

Commit

Permalink
FtpServer: added usleep
Browse files Browse the repository at this point in the history
It solves the problem when ftps upload fails. I have no idea why this happens, but this helped.

(vitalita.cz)
  • Loading branch information
dg committed Jun 2, 2021
1 parent d7a4f3c commit 51a3533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Deployment/FtpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public function writeFile(string $local, string $remote, callable $progress = nu
: Safe::ftp_nb_continue($this->connection);

$blocks++;
usleep(10000);
} while ($ret === FTP_MOREDATA);

if ($this->filePermissions) {
Expand Down

0 comments on commit 51a3533

Please sign in to comment.