RE: [SOAP] Timeout issue-does not work even when timeout is set
| From: | Mike Carter | Date: | Mon, 08 Mar 2004 09:35:53 +0000 |
| Subject: | RE: [SOAP] Timeout issue-does not work even when timeout is set | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1416@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Tan Ai Leen [mailto:tan_ai_leen9@hotmail.com]
> Sent: 07 March 2004 07:18
>
> There is this timeout variable for HTTP class that pear soap
> is using.
> I set the timeout to be 0 which the comments in HTTP class say means
> never, like this:
> $client->setOpt("timeout", 0);
>
> Not sure if it will work... cos the timeout could be cause by the OS,
> firewall, etc. As I am not good with network infrastructure, can't
> confirm anything.
>
> But you can try to configure the timeout for SOAP using the
> above function.
>
> Tell me if it works for you.
Don't you need to use the SOAP timeout option? I also found I needed to set
the CURL timeout as well...
$this->setOpt('curl', CURLOPT_TIMEOUT,
$GLOBALS['g_ps']['connectionTimeout']);
$this->setOpt('timeout', $GLOBALS['g_ps']['connectionTimeout']);
$GLOBALS['g_ps']['connectionTimeout'] being my special timeout value ;-)
Regards,
Mike C.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________