[WebSocket] RFC spec
AB fix 5.1, 5.2 Close connection on fragmented control frames Refs #13
This commit is contained in:
parent
f0d605a42e
commit
ccf7114a90
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user