[Israel.pm] SOAP::Lite and timeout

Yona Shlomo yona at cs.technion.ac.il
Sun Mar 6 05:46:44 PST 2005


Hello,

I tried to define a timeout for a SOAP client:

my $timeout = 1;
my $soap = SOAP::Lite
	-> uri('urn:FooBar')
	-> proxy('http://localhost:9009', timeout => $timeout)
;

My client gets an undefined object from its method call
upon timeout (peeking into the fault data, reveals that it was
due to a timeout).
So far so good.

It seems that the timeout breaks something, so the server
dies too (I get a "Broken pipe" on the server's side).

Anyone knows why the server dies and how to avoid that?

I'm avoiding it now by ignoring sig-pipe signals:
	$SIG{PIPE}='IGNORE';
However, I wonder why this happens and why isn't any of
the lower layers is handling this.

Thanks.



-- 
Shlomo Yona
yona at cs.haifa.ac.il
http://yeda.cs.technion.ac.il/~yona/




More information about the Perl mailing list