As a webadmin I'm concerned at what would happen if the file is changed while the webserver is reading it
Opened this issue · 0 comments
kf6kjg commented
Comes from this comment in Program.cs:
/* Issues to watch for:
* TODO: Tile image read during write - The web server could attempt to read a file while the file is being written.
* - Possible solution: write to a random filename then try { mv rndname to finalname with overwrite } catch { try again later for a max of N times }
* This should provide as much atomicity as possible, and allow anything that's blocking access to be bypassed via time delay. Needs to just fail under exceptions that indicate always-fail conditions.
*/