Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: SOAP::LITE client timeout makes ALL my Catalyst app to wait

by Khen1950fx (Canon)
on May 30, 2012 at 23:35 UTC ( [id://973399]=note: print w/replies, xml ) Need Help??


in reply to SOAP::LITE client timeout makes ALL my Catalyst app to wait

You could try a different approach such as:
my $soap = SOAP::Lite->uri($uri)->proxy($proxyURL);
In your script:
#!/usr/bin/perl -l use strict; use warnings; use SOAP::Lite; my $uri = 'http://www.example.com'; sub check_result { my ( $self, $code, $IP, $PORT ) = @_; my $proxyURL = "http://$IP:$PORT/REMOTE_SOAP"; my $soap = SOAP::Lite->uri($uri)->proxy($proxyURL); $soap->autotype(0); $soap->default_ns('http://REMOTENAMESPACE/namespace/default'); $soap->proxy->timeout(15); $soap->on_fault( sub { my ( $soap, $res ) = @_; eval { die ref $res ? $res->faultstring : $soap->transport +->status }; return ref $res ? $res : new SOAP::SOM; } ); my $som = $soap->call( "remote_function", SOAP::Data->name('Entry1')->valu +e($code), ); return $som->paramsout; }

Replies are listed 'Best First'.
Re^2: SOAP::LITE client timeout makes ALL my Catalyst app to wait
by miguelele (Beadle) on Jun 04, 2012 at 22:34 UTC

    Thank you, I tried your approach, but the situation remains the same

    I also have started several FastCGI processes in Nginx, so when one process delays waiting for an answer, another one can be used by another user.

    As I can see, the problem is not in the error handle, but in the time waiting for a response. Even if it is a Syncronous answer, I do not understand the it stops ALL the application.

    Any other suggestion?, or a working example for a similar function?

    Miguel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://973399]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-03-28 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found