#24924 [Bgs]: timeout don't work - URGENT ISSUE
| From: | gdoroftei at sicme dot ro | Date: | Mon, 04 Aug 2003 12:41:23 +0000 |
| Subject: | #24924 [Bgs]: timeout don't work - URGENT ISSUE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-45299@lists.php.net to get a copy of this message | ||
ID: 24924
User updated by: gdoroftei at sicme dot ro
Reported By: gdoroftei at sicme dot ro
Status: Bogus
Bug Type: Sockets related
Operating System: RedHat 8
PHP Version: 4.3.3RC2
New Comment:
I did that, the same problem.
After few sites, the script is blocked.
thanks.
Previous Comments:
------------------------------------------------------------------------
[2003-08-03 14:24:08] elmicha@php.net
Timeout is the 5th parameter of fsockopen, see
<http://de.php.net/fsockopen>.
------------------------------------------------------------------------
[2003-08-03 13:24:05] gdoroftei at sicme dot ro
Description:
------------
Hi,
I use fsockopen to query a list of sites. I wish that script to
continue when the connection can't be made (after a give TIMEOUT).
I had tryed the last RC but no success.
question: if connection isn't made the script will continue after that
TIMEOUT?
Thanks.
Reproduce code:
---------------
$this->TIMEOUT = 10;
This line is used in a while().
$ptr = @fsockopen($server,$this->PORT,$this->TIMEOUT);
Actual result:
--------------
When the site is down or the connection can't be made the script is
blocked. No error, nothing.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24924&edit=1