[Xml-compile] Changing keep_alive?

Matthew Horsfall (alh) wolfsage at gmail.com
Thu Dec 10 14:59:31 GMT 2015


On Thu, Dec 10, 2015 at 9:43 AM, Mark Overmeer <mark at overmeer.net> wrote:
>
> 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?

Ah, that does, thanks!

I thought I had seen some sort of problem in the past with overriding
the LWP, but I may be confusing that with overriding transport
perhaps.

Thanks,

-- Matthew Horsfall (alh)



More information about the Xml-compile mailing list