On 17.06.2015 15:01, Alexander Klenin wrote:
On Wed, Jun 17, 2015 at 11:05 AM, Denis Rotanov <denis@xxxxxxxxxxx> wrote:It's because for that gist I used `usleep 1000` or `usleep 10000` I don't remember exactly. With `sleep 1;` it's maximum of two retries.
Sure, but the gist you referenced contains 9 retries,Anyway, there is a "sleep 1" in the code, so should not it be enough ifIt's `$retry and sleep 1;` so happens only after first retry (which is
the file persists for only a second?
second try). And sometimes even that is not enough.
so there seems to be something deeper going on.