Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
janedbal opened this issue Nov 3, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@janedbal
Copy link
Contributor

commented Nov 3, 2015

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();
}

@dg dg closed this in ec691ce Nov 4, 2015

dg added a commit that referenced this issue Nov 4, 2015

dg added a commit that referenced this issue Nov 4, 2015

dg added a commit that referenced this issue Nov 4, 2015

@janedbal

This comment has been minimized.

Copy link
Contributor Author

commented Nov 5, 2015

@dg Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.