18 writes to PayloadLength
Microsoft.AspNetCore.Server.Kestrel.Core (18)
Internal\Http2\Http2FrameWriter.cs (8)
509_outgoingFrame.PayloadLength = ContinueBytes.Length; 620_outgoingFrame.PayloadLength = currentSize; 640_outgoingFrame.PayloadLength = payloadLength; 648_outgoingFrame.PayloadLength = payloadLength; 733_outgoingFrame.PayloadLength = (int)dataLength; // Plus padding 754_outgoingFrame.PayloadLength = dataPayloadLength; // Plus padding 771_outgoingFrame.PayloadLength = (int)dataLength; // Plus padding 913_outgoingFrame.PayloadLength = settingsSize;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Continuation.cs (1)
25PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
35PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.GoAway.cs (1)
23PayloadLength = 8;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Headers.cs (1)
47PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Ping.cs (1)
25PayloadLength = 8;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Priority.cs (1)
23PayloadLength = 5;
src\Shared\ServerInfrastructure\Http2\Http2Frame.RstStream.cs (1)
17PayloadLength = 4;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Settings.cs (1)
26PayloadLength = 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.WindowUpdate.cs (1)
17PayloadLength = 4;
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
64frame.PayloadLength = payloadLength;
17 references to PayloadLength
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http2\Http2Connection.cs (8)
716if (_incomingFrame.DataHasPadding && _incomingFrame.DataPadLength >= _incomingFrame.PayloadLength) 798if (_incomingFrame.HeadersHasPadding && _incomingFrame.HeadersPadLength >= _incomingFrame.PayloadLength - 1) 931if (_incomingFrame.PayloadLength != 5) 951if (_incomingFrame.PayloadLength != 4) 993if (_incomingFrame.PayloadLength != 0) 1001if (_incomingFrame.PayloadLength % 6 != 0) 1075if (_incomingFrame.PayloadLength != 8) 1123if (_incomingFrame.PayloadLength != 4)
Internal\Http2\Http2FrameWriter.cs (3)
967Debug.Assert(payload.Length == _outgoingFrame.PayloadLength); // 8 1015_unflushedBytes += Http2FrameReader.HeaderLength + _outgoingFrame.PayloadLength; 1033Bitshifter.WriteUInt24BigEndian(buffer, (uint)frame.PayloadLength);
Internal\Infrastructure\KestrelTrace.Http2.cs (2)
41Http2Log.Http2FrameReceived(_http2Logger, connectionId, frame.Type, frame.StreamId, frame.PayloadLength, frame.ShowFlags()); 64Http2Log.Http2FrameSending(_http2Logger, connectionId, frame.Type, frame.StreamId, frame.PayloadLength, frame.ShowFlags());
src\Shared\ServerInfrastructure\Http2\Http2Frame.cs (1)
63return $"{Type} Stream: {StreamId} Length: {PayloadLength} Flags: {ShowFlags()}";
src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
31public int DataPayloadLength => PayloadLength - DataPayloadOffset - DataPadLength;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Headers.cs (1)
43public int HeadersPayloadLength => PayloadLength - HeadersPayloadOffset - HeadersPadLength;
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
83if (extendedHeaderLength > frame.PayloadLength)