ezsystems/ezpublish — pull request #517 by lolautruche (2012-12-06 15:47:46+00:00)
Title: Fixed EZP-196171 - DFS cluster: expiryXYZtmp.php with 0 byte size

# Description
OK, this is a tough one :neckbeard: .
As the issue says, it only happens under high load pressure and there is no easy way to reproduce it in real conditions. The only possible thing is to fake the issue is to do some xdebug magic :trollface: .
The origin of this issue is mysterious, but is most likely due to NFS performance issues under high load.

The idea is that, if a file like `expiry.php` is not correctly copied from the DFS to the local FS for any reason, the copy process is retried until we manage to copy the file correctly.

# Testing
Manual tests painfully made...

# Credits
This patch is greatly inspired by the one made by @pbras and @joaoiniacio (see #404)