more useful options | |
PerlMonks |
Re: Working towards PSGI, some questionsby Corion (Patriarch) |
on Jan 08, 2016 at 07:12 UTC ( [id://1152268]=note: print w/replies, xml ) | Need Help?? |
Looking at Plack::Handler::Apache2, your app now runs under mod_perl. As I assume that your PSGI application is more or less a raw PSGI application, returning [200, {}, ["Hello World"]], maybe you have Apache set up to restart the httpd after each request, which is great for debugging. The easiest way to better confirm that your program is not run as a separate process would be some shared state between requests:
If you cannot make $counter++ increase and constantly see the "(Re)initializing" message in your webserver error log, your webserver is running each request in a separate request. You should get really different behaviour by using plackup with (for example) the Twiggy, Tatsumaki or another in-process backend.
In Section
Seekers of Perl Wisdom
|
|