[Xml-compile] Changing keep_alive?
Mark Overmeer
mark at overmeer.net
Thu Dec 10 14:43:22 GMT 2015
Hi Matthew,
I think this should do the trick:
* Matthew Horsfall (alh) (wolfsage at gmail.com) [151210 14:33]:
> my $svc = XML::Compile::WSDL11->new($file, prefixes => \%prefixes);
> $svc->compileCalls();
+ my $ua = LWP::UserAgent->new(keep_alive => 1);
+ $svc->compileCalls(user_agent => $ua);
>
> my $res = $svc->call(...)
Calls are compiled the first time they are used, or when you explicitly
use compileCalls() [call that before your daemon starts forking, if
this is in an daemon]
Does that work?
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc 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