Skip to content

FileStorage: infinite wait when exception is thrown in fallback callback and called again #36

Closed
@janedbal

Description

@janedbal

Following code leads to infinite wait on file lock here. Maybe there should be some global Exception handler with unlock?

$fn = function () use ($cache) {
    $cache->load('key', function () {
        throw new Exception;
    });
};

try {
    $fn();
} catch (Exception $e) {
    $fn();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions