note 45737 added to function.socket-select
| From: | RichardNeill at osu1 dot php dot net | Date: | Thu, 16 Sep 2004 16:37:18 +0000 |
| Subject: | note 45737 added to function.socket-select | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76840@lists.php.net to get a copy of this message | ||
It is probably a bad idea to watch an array of sockets for input with socket_select, and then
socket_read() using PHP_NORMAL_READ.
Although this seems desirable, you can end up with a permanently blocked program, if someone sends
you malformed input which is missing a trailing \n \r. Guess how I found that out.
----
Manual Page -- http://www.php.net/manual/en/function.socket-select.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45737
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45737&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45737&report=yes
Search -- http://master.php.net/manage/user-notes.php