25 ms·
This is what I'm going to be digging for later... I'm wondering if puma also shares `env` objects across requests.
by jakswa 6y ago
This is what I'm going to be digging for later... I'm wondering if puma also shares `env` objects across requests.
- Freaky 6y agoEach server does share a "proto env" object, but it is duplicated for each Client: https://github.com/puma/puma/blob/0cc3f7d71d1550dfa8f545ece8da03a696b47be5/lib/puma/client.rb#L53 https://github.com/puma/puma/blob/0cc3f7d71d1550dfa8f545ece8... and Client objects are not reused: https://github.com/puma/puma/blob/0cc3f7d71d1550dfa8f545ece8da03a696b47be5/lib/puma/server.rb#L337 https://github.com/puma/puma/blob/0cc3f7d71d1550dfa8f545ece8...