[WebSocket] RFC spec

AB fix 5.1, 5.2
Close connection on fragmented control frames
Refs #13
This commit is contained in:
Chris Boden 2012-06-16 11:54:15 -04:00
parent f0d605a42e
commit ccf7114a90

View File

@ -99,7 +99,7 @@ class RFC6455 implements VersionInterface {
$opcode = $frame->getOpcode(); $opcode = $frame->getOpcode();
if ($opcode > 2) { if ($opcode > 2) {
if ($frame->getPayloadLength() > 125) { if ($frame->getPayloadLength() > 125 || !$frame->isFinal()) {
return $from->close($frame::CLOSE_PROTOCOL); return $from->close($frame::CLOSE_PROTOCOL);
} }