From e392ff8ef304a78a0701f11fcd0ec27af28a88ac Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 16 Jul 2020 14:26:49 +0300 Subject: On Windows increase fdopen() retry timeout on ERROR_SHARING_VIOLATION up to 2 seconds from 1 Also do the same for mventry(), and try_rmfile(). --- libbutl/fdstream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbutl/fdstream.cxx') diff --git a/libbutl/fdstream.cxx b/libbutl/fdstream.cxx index b12ce78..0a5525c 100644 --- a/libbutl/fdstream.cxx +++ b/libbutl/fdstream.cxx @@ -1129,9 +1129,9 @@ namespace butl // sometimes ends up with the EACCES POSIX error which is presumably a // translation of the ERROR_SHARING_VIOLATION system error returned by the // underlying CreateFile() function call (see mventry() for details). If - // that's the case, we will keep trying to open the file for a second. + // that's the case, we will keep trying to open the file for two seconds. // - for (size_t i (0); i < 11; ++i) + for (size_t i (0); i < 21; ++i) { // Sleep 100 milliseconds before the open retry. // -- cgit v1.1