-
Notifications
You must be signed in to change notification settings - Fork 122
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
Use local variables in rack middleware to prevent instance state changes #151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm only unsure about |
@DonSchado handlers should not have request state, do they? @DonSchado @kangguru can we either merge this one or #150 and release a new patch version? |
then let's merge both. those instance variables for sure should not be there. And then we got the |
After deploying this change to prod we did not see any significant increase in memory usage (which was a bit surprising given this happens on each request). It might be this object is very lightweight and is garbage collected quite efficiently but I haven't done a detailed analysis of it. |
ok, that's good to hear! thanks for that. |
new version released |
…session * railslove/master: version up Use local variables in rack middleware to prevent instance state changes (railslove#151) Make middleware thread safe
* railslove/master: Use leftmost match to inject head to avoid one line html bug version up Use local variables in rack middleware to prevent instance state changes (railslove#151) Make middleware thread safe
see: #150