z3APA3A 8 лет назад
Родитель
Сommit
41b7b03db2
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      doc/html/highload.html

+ 3 - 1
doc/html/highload.html

@@ -178,7 +178,9 @@ To avoid race conditions:
 <ol>
 <ol>
 <li> Update config files only if there is no lock file
 <li> Update config files only if there is no lock file
 <li> Create lock file then 3proxy configuration is updated, e.g. with
 <li> Create lock file then 3proxy configuration is updated, e.g. with
-"touch /some/path/3proxy/3proxy.lck"
+"touch /some/path/3proxy/3proxy.lck". If you generate config files
+asynchronously, e.g. by user's request via web, you should consider
+implementing existance checking and file creation as atomic operation.
 <li>add
 <li>add
 <pre>
 <pre>
 system "rm /some/path/3proxy/3proxy.lck"
 system "rm /some/path/3proxy/3proxy.lck"