
Andy.L - 2009-10-26 02:29:29
I found a piece of hard code at line 480 where you use PHP_NORMAL_READ as the default parameter for socket_read. If I send some ASCII characters to my server, the handle method won't be called any more. After I remove the '@' character before socket_read a warning message shown below:
PHP Warning: socket_read(): unable to read from socket [104]: Connection reset by peer.
Change the type from PHP_NORMAL_READ to PHP_BINARY_READ, everything is OK.
So, I suggest to add a method to change the type of socket_read.