6 references to MaxMessageHeaderLength
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (6)
657
AllocateSendBuffer(payloadLength +
MaxMessageHeaderLength
);
720
Debug.Assert(sendBuffer.Length >=
MaxMessageHeaderLength
, $"Expected {nameof(sendBuffer)} to be at least {
MaxMessageHeaderLength
}, got {sendBuffer.Length}");
815
if (_receiveBufferCount < (_isServer ?
MaxMessageHeaderLength
: (
MaxMessageHeaderLength
- MaskLength)))
1449
byte[] closeBuffer = ArrayPool<byte>.Shared.Rent(
MaxMessageHeaderLength
+ MaxControlPayloadLength);