Framentation: data and continuation blocks received out of order (fix autobahn test: 5.9 through 5.20 Fragmentation)

This commit is contained in:
Benjamin Sergeant
2019-09-03 12:02:29 -07:00
parent 172cd39702
commit afa71a6b4b
7 changed files with 38 additions and 15 deletions

View File

@ -461,8 +461,8 @@ namespace ix
{
if (!isValidUtf8(text))
{
close(WebSocketCloseConstants::kNormalClosureCode,
WebSocketCloseConstants::kInvalidUtf8);
close(WebSocketCloseConstants::kInvalidFramePayloadData,
WebSocketCloseConstants::kInvalidFramePayloadDataMessage);
return false;
}
return sendMessage(text, SendMessageKind::Text, onProgressCallback);