#20922 [Opn->Fbk]: socket_select() blocks for some reason
| From: | sniper@php.net | Date: | Wed, 11 Dec 2002 07:08:29 +0000 |
| Subject: | #20922 [Opn->Fbk]: socket_select() blocks for some reason | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27318@lists.php.net to get a copy of this message | ||
ID: 20922
Updated by: sniper@php.net
Reported By: tit.petric@telemach.net
-Status: Open
+Status: Feedback
Bug Type: Sockets related
Operating System: linux debian latest unstable
-PHP Version: 4.2.3
+PHP Version: 4.4.0-dev
New Comment:
Please provide a complete, self-contained and short example script
which can be used to reproduce this.
Previous Comments:
------------------------------------------------------------------------
[2002-12-10 17:31:35] tit.petric@telemach.net
ughm sorry for my rushed english, what i ment to say is..
the snapshot version produces the same output as rc2, just without the
crash.
------------------------------------------------------------------------
[2002-12-10 17:12:12] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
One more try: TRY THE SNAPSHOT.
Not the RC2..(snapshot, as in the given url..)
------------------------------------------------------------------------
[2002-12-10 11:11:26] tit.petric@telemach.net
same result on windows rc2, just no more crash
------------------------------------------------------------------------
[2002-12-10 09:15:09] sniper@php.net
Please try the snapshot, iirc, there were some fixed done
which are NOT in RC2.
------------------------------------------------------------------------
[2002-12-10 08:16:48] tit.petric@telemach.net
on windows i get the "same" result with 4.3rc2, just that it hangs on
socket_read() not on socket_select
PHP Warning: socket_read() unable to read from socket [10035]: A
non-blocking s
ocket operation could not be completed immediately.
in D:\respawn\phpinfobot\infobot_win.php on line 28
then it crashes and i get that microsoft "report crash" thingie..
the code related to this:
if (!socket_set_nonblock($this->_connection)) {
report->info("couldnt set nonblocking mode.\n\n");
}
(this info line above ofcourse doesnt get printed)
as for the debian, i'm not really that much into compiling &
everything, and im definetly not fond of it on a "production" server..
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20922
--
Edit this bug report at http://bugs.php.net/?id=20922&edit=1