RE: [SOAP] Timeout Issue
| From: | Mike Carter | Date: | Wed, 03 Dec 2003 10:52:33 +0000 |
| Subject: | RE: [SOAP] Timeout Issue | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1196@lists.php.net to get a copy of this message | ||
Hi,
I too had this problem and the timeout fixed things. Then a little later
with some other webservice calls the results started getting a bit random.
To cure it completely I ended up setting the timeout in two places - to the
same value:-
// --- Timeout Delay before connection to webservice gives up
$this->setOpt('curl', CURLOPT_TIMEOUT,
$GLOBALS['g_ps']['MedVisor']['connectionTimeout']);
$this->setOpt('timeout',
$GLOBALS['g_ps']['MedVisor']['connectionTimeout']);
Just incase anybody else has similar problems try the above.
Regards,
Mike C.
> -----Original Message-----
> From: Rob Booth [mailto:rbooth@indyme.com]
> Sent: 02 December 2003 03:24
> To: soap@lists.php.net
> Subject: Re: [SOAP] Timeout Issue
>
>
> Thanks that fixed it.
>
> Is there any reason that this value is set so low? Also why
> is this value
> stored in the actual script instead of in some kind of .ini file?
>
> Rob
>
> "Laurent Buhler" <laurentb@whitepj.com> wrote in message
> news:000701c3b842$e94c9b50$9304010a@pc666...
> Hi Rob,
> I was looking at Transport/HTTP.php [from SOAP 0.8RC2] when I
> got your email
> It looks like if you don't specify timeout, default timeout is 4 sec.
>
> Did not try but you can set $options['timeout' when you call
> HTTP:send($msg,
> $option)
>
> ;-) Laurent.
>
> > -----Original Message-----
> > From: Rob Booth [mailto:rbooth@indyme.com]
> > Sent: Monday, December 01, 2003 11:25 AM
> > To: soap@lists.php.net
> > Subject: [SOAP] Timeout Issue
> >
> > I don't know if this is a SOAP issue or not, but I thought
> I'd ask if
> > anyone
> > has run into this.
> >
> > I have a reporting system setup that uses SOAP for
> transmitting the data.
> > When I run a report query against my MySQL database that
> takes ~2 seconds
> > or
> > less everything is fine. But if I run a query that takes
> more that 4
> > seconds to process my script dies and returns a "Invalid
> HTTP Response"
> > error.
> >
> > Has anyone run into something like this? Does SOAP reset
> the default max
> > execution time?
> >
> > Rob
> >
> > --
> > PHP Soap Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________