|
|
|
@ -768,8 +768,10 @@ namespace WebSocketSharp.Server
|
|
|
|
var bytes = stream.ReadBytes (length);
|
|
|
|
var bytes = stream.ReadBytes (length);
|
|
|
|
|
|
|
|
|
|
|
|
var len = bytes.Length;
|
|
|
|
var len = bytes.Length;
|
|
|
|
if (len == 0)
|
|
|
|
if (len == 0) {
|
|
|
|
throw new ArgumentException ("No data could be read from it.", "stream");
|
|
|
|
var msg = "No data could be read from it.";
|
|
|
|
|
|
|
|
throw new ArgumentException (msg, "stream");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (len < length) {
|
|
|
|
if (len < length) {
|
|
|
|
_logger.Warn (
|
|
|
|
_logger.Warn (
|
|
|
|
|