varspool / Wrench

A simple PHP WebSocket implementation for PHP 7.1
Do What The F*ck You Want To Public License
596 stars 210 forks source link

Large message #74

Open spider13software opened 9 years ago

spider13software commented 9 years ago

The server hangs when transferring a large message(more than 1391 bytes) PHP 5.3.3

Alarmfifa commented 9 years ago

I transferred a string(6291456) and it worked =) What kind of data did you transfer? From browser or from php script?

spider13software commented 9 years ago

From browser and from another application.

Alarmfifa commented 8 years ago

@spider13software Today I've got a server hang in the process of socket reading. It may be related with your issue. Could you try to open this file and replace a string on these ones:

                if ($length > $metadata['unread_bytes']) {
                    $length = $metadata['unread_bytes'];
                    stream_set_blocking ($this->socket,false);
                }