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

Introduce middleware that resets current local thread's config after each request #382

Merged
merged 1 commit into from Oct 14, 2017

Commits on Aug 27, 2017

  1. Introduce middleware that resets current local thread's config after …

    …each request
    
    This is a proposal PR.
    
    Rack based apps that work in a multithreaded environment can plugin this
    middleware to make sure a context of `locale` is only persisted
    in the lifecycle of the request and aren't leaked between requests unintentionally.
    Which is common in thread pool like environments.
    
    This is especially helpful if a server/environment isn't cleaning thread local
    storage after/before request.
    Shayon Mukherjee committed Aug 27, 2017
    Copy the full SHA
    13d286b View commit details
    Browse the repository at this point in the history