Use local variables in rack middleware to prevent instance state changes#151
Use local variables in rack middleware to prevent instance state changes#151
Conversation
|
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