From:             [EMAIL PROTECTED]
Operating system: linux debian latest unstable
PHP version:      4.2.3
PHP Bug Type:     Sockets related
Bug description:  socket_select() blocks for some reason

$r = array($network->_connection);
if (socket_select($r,$w=NULL,$e=NULL,0)===false) {
        echo "socket_select failed: reason: " .
socket_strerror(socket_last_error()) . "\n";
} else {
... code...
}

somehow neither part of the if/else case gets executed for me,
socket_select just seems to "hang".. the $network->_connection is valid
(no errors in connecting) and non blocking (no errors here either)..

the code used to work fine for quite some time, also on 4.2.3 now i don't
have a clue what goes wrong -> if i send data trough the socket i actually
get it on the other side (the application here would be an irc bot, so i
see him join the network and then timeout since it hangs on
socket_select)

the code for it is on www.sf.net/projects/phpinfobot/ in the cvs, if
somebody wants to test it, the important files should be

/infobot.php
/include/system/network.php
/include/system/irc.php

the rest is pretty much non important
-- 
Edit bug report at http://bugs.php.net/?id=20922&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20922&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20922&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20922&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20922&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20922&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20922&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20922&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20922&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20922&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20922&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20922&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20922&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20922&r=isapi

Reply via email to