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:
my $counter= 1; warn "(Re)initializing application $0\n"; return sub { [200, {}, ["Hello request " . $counter++]] };
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 reply to Re: Working towards PSGI, some questions
by Corion
in thread Working towards PSGI, some questions
by Cody Fendant
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |