ID: 24924
Updated by: [EMAIL PROTECTED]
Reported By: gdoroftei at sicme dot ro
Status: Bogus
Bug Type: Sockets related
Operating System: RedHat 8
PHP Version: 4.3.3RC2
New Comment:
Are you now using something like
$ptr = @fsockopen($server,$this->PORT, $errno, $errstr,
$this->TIMEOUT);
did you try this?
if(!$ptr){
echo "$errstr ($errno)";
}
Previous Comments:
------------------------------------------------------------------------
[2003-08-04 07:41:23] gdoroftei at sicme dot ro
I did that, the same problem.
After few sites, the script is blocked.
thanks.
------------------------------------------------------------------------
[2003-08-03 14:24:08] [EMAIL PROTECTED]
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