Compare commits
No commits in common. "5e62c2b02d4b2a66c9b25355e9e048cc99999d33" and "f0880cdf132010ea4304d7529cb33cb9d90a709e" have entirely different histories.
5e62c2b02d
...
f0880cdf13
1 changed files with 1 additions and 1 deletions
|
@ -74,13 +74,13 @@ 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()) {
|
||||||
|
\usleep(100000);
|
||||||
if (\time() >= $timedOut) {
|
if (\time() >= $timedOut) {
|
||||||
throw new LockAcquiringException(
|
throw new LockAcquiringException(
|
||||||
'Could not acquire the lock for "' . $key . '" in ' . $this->secondsToWait . ' seconds.',
|
'Could not acquire the lock for "' . $key . '" in ' . $this->secondsToWait . ' seconds.',
|
||||||
1652687960
|
1652687960
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
\usleep(100000);
|
|
||||||
}
|
}
|
||||||
$this->logger->debug('SessionLock: Acquired "' . $key . '"');
|
$this->logger->debug('SessionLock: Acquired "' . $key . '"');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue