Added contentHandlers short-circuit for benchmarking PSGI vs. modperl
This commit is contained in:
parent
68bbca1808
commit
a866fd10f0
1 changed files with 5 additions and 0 deletions
|
|
@ -124,6 +124,11 @@ sub dispatch {
|
||||||
# Instantiate the session object
|
# Instantiate the session object
|
||||||
my $session = $self->session( WebGUI::Session->open($self->root, $config, $request, $sessionId) );
|
my $session = $self->session( WebGUI::Session->open($self->root, $config, $request, $sessionId) );
|
||||||
|
|
||||||
|
# Short-circuit contentHandlers - for benchmarking PSGI scaffolding vs. modperl
|
||||||
|
$session->close;
|
||||||
|
$session->output->print('WebGUI PSGI with contentHandlers short-circuited for benchmarking');
|
||||||
|
return $session->response->finalize;
|
||||||
|
|
||||||
for my $handler (@{$config->get("contentHandlers")}) {
|
for my $handler (@{$config->get("contentHandlers")}) {
|
||||||
my $output = eval { WebGUI::Pluggable::run($handler, "handler", [ $session ] )};
|
my $output = eval { WebGUI::Pluggable::run($handler, "handler", [ $session ] )};
|
||||||
if ( my $e = WebGUI::Error->caught ) {
|
if ( my $e = WebGUI::Error->caught ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue