#24924 [NEW]: timeout don't work - URGENT ISSUE
| From: | gdoroftei at sicme dot ro | Date: | Sun, 03 Aug 2003 18:24:06 +0000 |
| Subject: | #24924 [NEW]: timeout don't work - URGENT ISSUE | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-45266@lists.php.net to get a copy of this message | ||
From: gdoroftei at sicme dot ro
Operating system: RedHat 8
PHP version: 4.3.3RC2
PHP Bug Type: Sockets related
Bug description: timeout don't work - URGENT ISSUE
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 bug report at http://bugs.php.net/?id=24924&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24924&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24924&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24924&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24924&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24924&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24924&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24924&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24924&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24924&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24924&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24924&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24924&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24924&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24924&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24924&r=gnused