浏览代码

[HttpKernel] fixed previous commit

Fabien Potencier 15 年之前
父节点
当前提交
eb8b7645d4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Components/HttpKernel/Cache/Cache.php

+ 2 - 2
src/Symfony/Components/HttpKernel/Cache/Cache.php

@@ -452,11 +452,11 @@ class Cache implements HttpKernelInterface
             } else {
             } else {
                 // wait for the lock to be released
                 // wait for the lock to be released
                 $wait = 0;
                 $wait = 0;
-                while (file_exists($lock) && $wait < 5) {
+                while (file_exists($lock) && $wait < 5000000) {
                     usleep($wait += 50000);
                     usleep($wait += 50000);
                 }
                 }
 
 
-                if ($wait < 2) {
+                if ($wait < 2000000) {
                     // replace the current entry with the fresh one
                     // replace the current entry with the fresh one
                     $new = $this->lookup($request);
                     $new = $this->lookup($request);
                     $entry->headers = $new->headers;
                     $entry->headers = $new->headers;