Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#41 timeout doesn't work

0.55
closed-works-for-me
Byrne Reese
Transport (26)
5
2004-09-27
2004-02-20
Simone Piunno
No

Hi,

using SOAP::Lite 0.55, perl 5.6.1, linux 2.4
https transport with openssl 0.9.6b
I have a client performing requests in a loop.
Sometimes a request blocks for *hours*, so that
following requests get delayed.
we use "timeout => 300" in the ->proxy method but it
looks like this parameter is completely ignored.

Any hint?

Thanks

Discussion

  • Byrne Reese
    Byrne Reese
    2004-09-27

    • status: open --> closed
     
  • Byrne Reese
    Byrne Reese
    2004-09-27

    • status: closed --> closed-works-for-me
     
  • Byrne Reese
    Byrne Reese
    2004-09-27

    Logged In: YES
    user_id=28043

    Timeout functionality is a component of the LWP::UserAgent
    module that SOAP::Transport::HTTP::Client inherits from.

    How are you setting the timeout value? Are you using one of
    the following ways?

    my $soap = SOAP::Lite
    ->uri($uri)
    ->proxy($proxyUrl, timeout => 300 );

    -- or --

    my $soap = SOAP::Lite
    ->uri($uri)
    ->proxy($proxyUrl);
    $soap->proxy->timeout(300);

    I have tested this capability using the code above and
    SOAP::Lite 0.65 and the timeout works.