note 113028 added to function.stream-select
| From: | mark2xv at gmail dot com | Date: | Tue, 20 Aug 2013 16:52:23 +0000 |
| Subject: | note 113028 added to function.stream-select | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196028@lists.php.net to get a copy of this message | ||
If you're getting unexplainable problems with nonblocking sockets using stream_select, disable
the buffers using:
stream_set_read_buffer($socket, 0);
stream_set_write_buffer($socket, 0);
For some reason when writing (in total) ~256k, sockets start returning FALSE when reading, yet
always appear in the stream_select arrays. This fixed that problem. (for us.)
----
Server IP: 69.147.83.199
Probable Submitter: 87.213.54.254
----
Manual Page -- http://php.net/manual/en/function.stream-select.php
Edit -- https://master.php.net/note/edit/113028
Del: integrated -- https://master.php.net/note/delete/113028/integrated
Del: useless -- https://master.php.net/note/delete/113028/useless
Del: bad code -- https://master.php.net/note/delete/113028/bad+code
Del: spam -- https://master.php.net/note/delete/113028/spam
Del: non-english -- https://master.php.net/note/delete/113028/non-english
Del: in docs -- https://master.php.net/note/delete/113028/in+docs
Del: other reasons-- https://master.php.net/note/delete/113028
Reject -- https://master.php.net/note/reject/113028
Search -- https://master.php.net/manage/user-notes.php