From: abhishek dot ratani at gmail dot com
Operating system: Linux
PHP version: 5.0.1
PHP Bug Type: Sockets related
Bug description: timeouts don't work on non-blocking sockets
Description:
------------
Note that if you set the socket non-blocking via socket_set_blocking() you
cannot check if the socket has timed out with this function.
Example:
$status = socket_get_status($fp);
if ($status['timed_out']) {
echo "socket timed out\n";
}
The above condition will never be true even if the socket has timed out.
Is this a bug?
Expected result:
----------------
I except the socket to time out, if the timeout period has passed. But the
socket never timesout. Forces me to keep track of time now.
--
Edit bug report at http://bugs.php.net/?id=30121&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30121&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30121&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30121&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30121&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30121&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30121&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30121&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30121&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30121&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30121&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30121&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30121&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30121&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30121&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30121&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30121&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30121&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30121&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30121&r=mysqlcfg