sannremy/PHP-Push-WebSocket

Problem when sending large text

evnix opened this issue · 2 comments

there is a bug when I try to send long text messages from client to the server, I did not count at what length does the error occur.
the problem is the either only half the text gets received or sometimes the whole text is corrupted.

In my opinion, the problem is due to the unmask() function

ok I fixed it myself in my fork.
The server did not check for data larger than 2048 bytes.
I just added the socket_recv function inside a while loop and it worked perfectly.

Ok that's a good thing! I will update all those patches!
Thanks :)