Skip to content

Commit 915ff72

Browse files
committedFeb 24, 2013
Fix read buffer processing
1 parent d0a15ab commit 915ff72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/WebSocketServer/Socket/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ public function processRead()
357357
if (!$this->handshake->isComplete()) {
358358
$this->shakeHands();
359359
} else {
360-
$this->messageDecoder->processData($this->buffer);
360+
// keep processing until there are no complete frames left in the buffer
361+
while ($this->messageDecoder->processData($this->buffer));
361362
}
362363
}
363364
}

0 commit comments

Comments
 (0)
Please sign in to comment.