dimikot / dklab_realsync

dkLab RealSync: replicate developer's files over SSH in realtime
203 stars 41 forks source link

Retry sync on "Permission denied" #25

Open wrygiel opened 9 years ago

wrygiel commented 9 years ago

Occasionally, I will get "Permission denied" when it's taking for my IDE longer to save some files up. E.g.

[15:44:24] Detected 1 change(s), transmitting...
[15:44:24] Cannot open ./common/mutations.py: Permission denied; skipped

Almost always, I won't see the error pop up in the console and I keep working as if nothing happened. Then, I spend a couple of minutes debugging why some of my changes are not working as expected. Then I remember, that perhaps the sync might have failed again - I restart realsync, the missing file is synced, and everything works fine again.

However, the file is being released just a moment later. Can we make realsync wait a little longer and retry to sync that file, instead of skipping it?