[Xml-compile] Use of uninitialized value $maxmsgs

Mark Overmeer mark at overmeer.net
Thu May 30 07:40:10 GMT 2013


* Theo Bot (thg.bot at gmail.com) [130530 07:21]:
> When it runs and I call it I get the following error messages:
> ./SoapServer.pl --live
> info: added 1 operations from WSDL
> info: switching to run mode 2, accept ASSERT-
> SOAP11:
>    sayHello
> Use of uninitialized value $maxmsgs in numeric eq (==) at
> /usr/local/perl5.16.3/lib/site_perl/5.16.3/XML/Compile/SOAP/Daemon/LWPutil.pm
> line 97.
> Use of uninitialized value $reqbonus in addition (+) at
> /usr/local/perl5.16.3/lib/site_perl/5.16.3/XML/Compile/SOAP/Daemon/LWPutil.pm
> line 101.

Those are just warnings.  Apparently, the defaults are set with the
wrong name.  I think this should solve the warnings: patch file
XML/Compile/SOAP/Daemon/AnyDaemon.pm

   $self->{XCSDA_conn_opts} =
 -    { client_timeout  => ($args->{client_timeout}  ||  30)
 -    , client_maxreq   => ($args->{client_maxreq}   || 100)
 -    , client_reqbonus => ($args->{client_reqbonus} ||   0)
 +    { expires  => ($args->{client_timeout}  ||  30)
 +    , maxreq   => ($args->{client_maxreq}   || 100)
 +    , reqbonus => ($args->{client_reqbonus} ||   0)
      , postprocess     => $args->{postprocess}
      };

Result of a merge of the common functionality in ::NetServer and
::AnyDaemon
-- 
Met vriendelijke groet,

               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list