message recv bugfix 2
This commit is contained in:
parent
bc4663e3a7
commit
e685a469f4
|
@ -393,7 +393,8 @@ class fuckwebsockets{
|
|||
if($masked){
|
||||
|
||||
// get mask and message payload
|
||||
$this->socket_recv($this->client, $frame_data, $messagelength + 4, MSG_WAITALL);
|
||||
$messagelength += 4;
|
||||
$this->socket_recv($this->client, $frame_data, $messagelength, MSG_WAITALL);
|
||||
|
||||
for($i=4; $i<$messagelength; $i++){
|
||||
|
||||
|
|
Loading…
Reference in New Issue