1Plack::Loader::Delayed(U3s)er Contributed Perl DocumentatPiloanck::Loader::Delayed(3)
2
3
4

NAME

6       Plack::Loader::Delayed - Delay the loading of .psgi until the first run
7

SYNOPSIS

9         plackup -s Starlet -L Delayed myapp.psgi
10

DESCRIPTION

12       This loader delays the compilation of specified PSGI application until
13       the first request time. This prevents bad things from happening with
14       preforking web servers like Starlet, when your application manipulates
15       resources such as sockets or database connections in the master startup
16       process and then shared by children.
17
18       You can combine this loader with "-M" command line option, like:
19
20         plackup -s Starlet -MCatalyst -L Delayed myapp.psgi
21
22       loads the module Catalyst in the master process for the better process
23       management with copy-on-write, however the application "myapp.psgi" is
24       loaded per children.
25
26       Starman since version 0.2000 loads this loader by default unless you
27       specify the command line option "--preload-app" for the starman
28       executable.
29

DEVELOPERS

31       Web server developers can make use of "psgi_app_builder" attribute
32       callback set in Plack::Handler, to load the application earlier than
33       the first request time.
34

AUTHOR

36       Tatsuhiko Miyagawa
37

SEE ALSO

39       plackup
40
41
42
43perl v5.38.0                      2023-07-21         Plack::Loader::Delayed(3)
Impressum