message recv bugfix 2
This commit is contained in:
@@ -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++){
|
||||
|
||||
|
Reference in New Issue
Block a user