From 90c3d2107b6573d9b80c2a0606f094dd0700f2dc Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sat, 16 Jun 2012 11:54:15 -0400 Subject: [PATCH] [WebSocket] RFC spec AB fix 5.1, 5.2 Close connection on fragmented control frames Refs #13 --- Version/RFC6455.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Version/RFC6455.php b/Version/RFC6455.php index de21e78..41473b1 100644 --- a/Version/RFC6455.php +++ b/Version/RFC6455.php @@ -99,7 +99,7 @@ class RFC6455 implements VersionInterface { $opcode = $frame->getOpcode(); if ($opcode > 2) { - if ($frame->getPayloadLength() > 125) { + if ($frame->getPayloadLength() > 125 || !$frame->isFinal()) { return $from->close($frame::CLOSE_PROTOCOL); }