mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 08:58:50 +00:00
fix: dont aquire exclusive locks (#4340)
Due to bugs in logging/error-handling there sometimes are deadlocks
This commit is contained in:
parent
e3260ff529
commit
628b30208a
@ -53,7 +53,7 @@ class FileCache implements CacheInterface
|
|||||||
'value' => $value,
|
'value' => $value,
|
||||||
];
|
];
|
||||||
$cacheFile = $this->createCacheFile($key);
|
$cacheFile = $this->createCacheFile($key);
|
||||||
$bytes = file_put_contents($cacheFile, serialize($item), LOCK_EX);
|
$bytes = file_put_contents($cacheFile, serialize($item));
|
||||||
// todo: Consider tightening the permissions of the created file. It usually allow others to read, depending on umask
|
// todo: Consider tightening the permissions of the created file. It usually allow others to read, depending on umask
|
||||||
if ($bytes === false) {
|
if ($bytes === false) {
|
||||||
// Consider just logging the error here
|
// Consider just logging the error here
|
||||||
|
@ -136,7 +136,7 @@ final class StreamHandler
|
|||||||
$record['message'],
|
$record['message'],
|
||||||
$context
|
$context
|
||||||
);
|
);
|
||||||
$bytes = file_put_contents($this->stream, $text, FILE_APPEND | LOCK_EX);
|
$bytes = file_put_contents($this->stream, $text, FILE_APPEND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user