Thanks for the reply,
  Well hopefully this will help narrow down the issue.  With Fsockopen a
timeout can be passed, however, this is using fopen.  I am hoping there may
be some obscure way of setting a timeout but so far, I've not been able to
find one.

-----Original Message-----
From: Dan Anderson [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 05, 2003 6:26 PM
To: Giz
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Timing out fopen using https stream wrapper?

>From the user comments:
I think it might be useful to point out that set_time_limit() doesn't
have any effect on stream operations. A stalled script, either during
open operations (e.g. fsockopen()) or read operations (e.g. fgets()),
can make your script run "forever".

So it would be advisable to define timeouts for opening sockets (with
the timeout parameter in fsockopen()) and for reading data from sockets
(with socket_set_timeout()).

So, yes, you would have had to go to:
http://us3.php.net/manual/en/function.fsockopen.php

Sorry about that but I didn't exactly have lots of time on my hands at
the time to give you more details.

-Dan

On Sat, 2003-07-05 at 21:27, Giz wrote:
> I've looked at that page extensively and seen nothing there that would
> handle my issue, long before I ever mailed the problem to this list.  What
> in particular from there did you see that would be useful to my use of
> fopen('http://etc')?
> 
> -----Original Message-----
> From: Dan Anderson [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, July 05, 2003 5:28 PM
> To: Giz
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Timing out fopen using https stream wrapper?
> 
> > This has no effect on stream operations.  I have a timeout set in
php.ini,
> > but the script never times out, so that should further illustrate the
> issue.
> 
> But if you'd visited the page I sent you and viewed user comments you
> would see how to set a time limit for socket operations (what you're
> doing).
> 
> -Dan
> 
> 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to