#24924 [Opn->Bgs]: timeout don't work - URGENT ISSUE
ID: 24924
Updated by: elmicha@php.net
Reported By: gdoroftei at sicme dot ro
-Status: Open
+Status: Bogus
Bug Type: Sockets related
Operating System: RedHat 8
PHP Version: 4.3.3RC2
New Comment:
Timeout is the 5th parameter of fsockopen, see
<http://de.php.net/fsockopen>.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (4 messages)