Compare commits

..

No commits in common. "f0880cdf132010ea4304d7529cb33cb9d90a709e" and "da747f2af86890ba4eb2fa2104cb14095b808f3a" have entirely different histories.

View file

@ -73,14 +73,14 @@ class SessionLockRequestComponent implements ComponentInterface
$this->logger->debug('SessionLock: Try to get "' . $key . '"'); $this->logger->debug('SessionLock: Try to get "' . $key . '"');
$timedOut = \time() + $this->secondsToWait; $timedOut = \time() + $this->secondsToWait;
while (!$lock->acquire()) { while (!$lock->acquire() || $timedOut <= \time()) {
\usleep(100000); \usleep(100000);
if (\time() >= $timedOut) { }
throw new LockAcquiringException( if (!$lock->isAcquired()) {
'Could not acquire the lock for "' . $key . '" in ' . $this->secondsToWait . ' seconds.', throw new LockAcquiringException(
1652687960 'Could not acquire the lock for "' . $key . '" in ' . $this->secondsToWait . ' seconds.',
); 1652687960
} );
} }
$this->logger->debug('SessionLock: Acquired "' . $key . '"'); $this->logger->debug('SessionLock: Acquired "' . $key . '"');
} }