[Xml-compile] fast cgi usage with XML::Compile::SOAP::Daemon::CGI
Immo
immo at nothrix.org
Thu Feb 13 15:46:34 GMT 2014
Hello,
i am rewriting a SOAP::Lite based application. With XML::Compile it is
almost fun.
The application runs as fcgi with Apache. Thus the costly initializing
is only done once.
I found that with a little patch i can derive a FCGI.pm which sets nph
to 0. So far it works and i did not see a problem or side effect.
If this pass review would it be possible to integrate as new module or
better make ::CGI configurable for usage with nph = 0.
Thank you in advance
Immo
Patch against XML::Compile::SOAP::Daemon::CGI VERSION = '3.06'
--- CGI.pm 2013-05-03 10:07:38.000000000 +0200
+++ FCGI.pm 2013-12-12 15:01:56.000000000 +0100
@@ -5,7 +5,7 @@
use warnings;
use strict;
-package XML::Compile::SOAP::Daemon::CGI;
+package XML::Compile::SOAP::Daemon::FCGI;
use vars '$VERSION';
$VERSION = '3.06';
@@ -77,7 +77,7 @@
( -status => "$rc $msg"
, -type => $mime
, -charset => 'utf-8'
- , -nph => 1
+ , -nph => 0
);
if(my $pp = $args->{postprocess})
@@ -107,7 +107,7 @@
( -status => RC_OK.' WSDL specification'
, -type => 'application/wsdl+xml'
, -charset => 'utf-8'
- , -nph => 1
+ , -nph => 0
, -Content_length => length($self->{wsdl_data})
);
More information about the Xml-compile
mailing list