Bug #53262

FileBakend have some race condition

Added by Dominique Feyer almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Should have
Category:
Cache
Target version:
-
Start date:
2013-11-01
Due date:
% Done:

0%

PHP Version:
Has patch:
Yes
Complexity:

Description

One of the problem is that get() can be called before the file is available, so we need multiple try of file_get_contents like we have in set() for the rename. In the patch, I add a usleep, really short, to increase the wait time a bit between each try.


Related issues

Related to TYPO3.Flow - Bug #44203: Session implementation is still racy Needs Feedback 2012-12-22

Associated revisions

Revision 504f642d (diff)
Added by Dominique Feyer almost 5 years ago

[TASK] Add support for file locking in (Simple)FileBackend

With concurrent access the current FileBackend and SimpleFileBackend can
be racy, this patch adds a strict file locking when writing and shared
locking when ready to avoid this problem.

Change-Id: Iaf0b42cf94c1e9fd4392267dda5afef4042b0be7
Related: #53262
Releases: master

Also available in: Atom PDF