[Modify] Add RSV check

This commit is contained in:
sta 2015-12-09 15:55:08 +09:00
parent 53407f5732
commit ff7e00f661

View File

@ -744,6 +744,10 @@ namespace WebSocketSharp
? "A data frame has been received while receiving the fragmented data." ? "A data frame has been received while receiving the fragmented data."
: frame.IsCompressed && _compression == CompressionMethod.None : frame.IsCompressed && _compression == CompressionMethod.None
? "A compressed frame is without an available decompression method." ? "A compressed frame is without an available decompression method."
: frame.Rsv2 == Rsv.On
? "The RSV2 of a frame is non-zero without any negotiation for it."
: frame.Rsv3 == Rsv.On
? "The RSV3 of a frame is non-zero without any negotiation for it."
: null; : null;
} }