Skip to content

Commit

Permalink
merged 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 22, 2012
2 parents 7dfcbe4 + 0cb0faf commit 1dcb71f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions EventListener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function onKernelException(GetResponseForExceptionEvent $event)
);

$request = $request->duplicate(null, null, $attributes);
$request->setMethod('GET');

try {
$response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, true);
Expand Down
3 changes: 2 additions & 1 deletion HttpCache/HttpCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ protected function lock(Request $request, Response $entry)
// wait for the lock to be released
$wait = 0;
while (is_file($lock) && $wait < 5000000) {
usleep($wait += 50000);
usleep(50000);
$wait += 50000;
}

if ($wait < 2000000) {
Expand Down

0 comments on commit 1dcb71f

Please sign in to comment.