Skip to content

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

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

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

Comments

@janedbal
Copy link
Contributor

janedbal 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();
}
@janedbal
Copy link
Contributor Author

janedbal 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant