There's more than one way to do things | |
PerlMonks |
Re: Mojolicious / Hypnotoad / concurrency / data scopeby Arunbear (Prior) |
on Jan 06, 2018 at 18:30 UTC ( [id://1206828]=note: print w/replies, xml ) | Need Help?? |
Looking at the code, it seems the context is stored in a singleton object and would also persist for the life time of the worker process.
Why not rebuild/reset the context for each new request, or localize it as the example you linked to shows?
In Section
Seekers of Perl Wisdom
|
|