Plack::Loader::Delayed(3pm) User Contributed Perl Documentation Plack::Loader::Delayed(3pm)NAME
Plack::Loader::Delayed - Delay the loading of .psgi until the first run
SYNOPSIS
plackup -s Starlet -L Delayed myapp.psgi
DESCRIPTION
This loader delays the compilation of specified PSGI application until the first request time. This prevents bad things from happening with
preforking web servers like Starlet, when your application manipulates resources such as sockets or database connections in the master
startup process and then shared by children.
You can combine this loader with "-M" command line option, like:
plackup -s Starlet -MCatalyst -L Delayed myapp.psgi
loads the module Catalyst in the master process for the better process management with copy-on-write, however the application "myapp.psgi"
is loaded per children.
Starman since version 0.2000 loads this loader by default unless you specify the command line option "--preload-app" for the starman
executable.
DEVELOPERS
Web server developers can make use of "psgi_app_builder" attribute callback set in Plack::Handler, to load the application earlier than the
first request time.
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO
plackup
perl v5.14.2 2011-02-27 Plack::Loader::Delayed(3pm)
Check Out this Related Man Page
Plack::Middleware::Lint(3pm) User Contributed Perl Documentation Plack::Middleware::Lint(3pm)NAME
Plack::Middleware::Lint - Validate request and response
SYNOPSIS
use Plack::Middleware::Lint;
my $app = sub { ... }; # your app or middleware
$app = Plack::Middleware::Lint->wrap($app);
# Or from plackup
plackup -e 'enable "Lint"' myapp.psgi
DESCRIPTION
Plack::Middleware::Lint is a middleware component to validate request and response environment formats. You are strongly suggested to use
this middleware when you develop a new framework adapter or a new PSGI web server that implements the PSGI interface.
This middleware is enabled by default when you run plackup or other launcher tools with the default environment development value.
DEBUGGING
Because of how this middleware works, it may not be easy to debug Lint errors when you encounter one, unless you're writing a PSGI web
server or a framework.
For example, when you're an application developer (user of some framework) and see errors like:
Body should be an array ref or filehandle at lib/Plack/Middleware/Lint.pm line XXXX
there's no clue about which line of your application produces that error.
We're aware of the issue, and have a plan to spit out more helpful errors to diagnose the issue. But until then, currently there are some
workarounds to make this easier. For now, the easiest one would be to enable Plack::Middleware::REPL outside of the Lint middleware, like:
plackup -e 'enable "REPL"; enable "Lint"' app.psgi
so that the Lint errors are caught by the REPL shell, where you can inspect all the variables in the response.
AUTHOR
Tatsuhiko Miyagawa
Tokuhiro Matsuno
SEE ALSO
Plack
perl v5.14.2 2011-09-22 Plack::Middleware::Lint(3pm)
Hi,
We are running a perl script to upload some data using SQL* Loader. We pipe the data in a http request to SQL*Loader which loads the data to the database. We encounter the error "Inappropirate ioctl for device" when we try to upload huge data. Any solution would be greatly appreciated.... (4 Replies)
I want to develop an application. Simply,
Open this application via the web
Access database to retrieve some information
Do some validation and process inputs
Create a file based on a master file from a UNIX server
Put that file to the UNIX server
That is it. I have got suggestions to... (5 Replies)
My file has data that looks like below:
more data.txt
I wish to display each string seperated by a delimiter :
Expected output:
I tried the below but I m not getting every split string on a new line.
#!/bin/bash
for i in `sed 's/:/\\n/g' data.txt`;
do
echo -n... (2 Replies)