tomaswolf commented on issue #370:
URL: https://github.com/apache/mina-sshd/issues/370#issuecomment-1550419420

   Still not foolproof, though. There is still the possibility of the file 
appearing "racily clean" (basically, having been modified again, with content 
of equal size, but faster than the file timestamp resolution). If one wants to 
catch such cases, too, then we'd have to apply concepts used in JGit: 
FileSnapshot, and considering any "last modified" time with now - last_modified 
<= file_timestamp_resolution a potential modification. Probably we wouldn't 
need the machinery JGit uses to determine the file timestamp resolution 
accurately since we don't read these files that frequently, so just using a 
worst-case assumption of 3 seconds might be fine?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to