Re: timeout problem
| From: | Pavel Marenyuk | Date: | Thu, 28 Aug 2003 07:31:27 +0000 |
| Subject: | Re: timeout problem | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1000@lists.php.net to get a copy of this message | ||
Abdul-Wahid Paterson <aw@lintrix.net> wrote:
> [-- text/plain, encoding quoted-printable, 26 lines --]
>
> Hi again,
>
> Ok, I now have a new problem. My test script works fine now but when I
> try to consume the service that I really want I get a timeout error:
>
> "Error: Timed out read from XXX.XXXXXX.com"
>
> This error message gets generated after about 10 seconds of the script
> running. I know from my Perl version of my program that the service I am
> accessing is really slow and usually takes 15-20 seconds to respond. (I
> hope because I am using the development platform rather than the live).
> How can I increase the timeout period so that the script doesn't
> generate a timeout message before the server answers the request?
>
you can do it lite this anytime, before $client->call()
prefered: $client->setOpt('timeout', 20)
or: $client->__options['timeout']=20;
>
--
Pavel pavlomr@hotmail.com