10 writes to StreamId
Microsoft.AspNetCore.Server.Kestrel.Core (10)
src\Shared\ServerInfrastructure\Http2\Http2Frame.Continuation.cs (1)
28
StreamId
= streamId;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Data.cs (1)
38
StreamId
= streamId;
src\Shared\ServerInfrastructure\Http2\Http2Frame.GoAway.cs (1)
26
StreamId
= 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Headers.cs (1)
50
StreamId
= streamId;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Ping.cs (1)
28
StreamId
= 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Priority.cs (1)
25
StreamId
= streamId;
src\Shared\ServerInfrastructure\Http2\Http2Frame.RstStream.cs (1)
20
StreamId
= streamId;
src\Shared\ServerInfrastructure\Http2\Http2Frame.Settings.cs (1)
29
StreamId
= 0;
src\Shared\ServerInfrastructure\Http2\Http2Frame.WindowUpdate.cs (1)
20
StreamId
= streamId;
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (1)
67
frame.
StreamId
= (int)Bitshifter.ReadUInt31BigEndian(header.Slice(StreamIdOffset));
36 references to StreamId
Microsoft.AspNetCore.Server.Kestrel.Core (36)
Internal\Http2\Http2Connection.cs (32)
348
AbortStream(_incomingFrame.
StreamId
, new IOException(ex.Message, ex));
683
if (_incomingFrame.
StreamId
!= 0 && (_incomingFrame.
StreamId
& 1) == 0)
685
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdEven(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidStreamId);
711
if (_incomingFrame.
StreamId
== 0)
723
if (_streams.TryGetValue(_incomingFrame.
StreamId
, out var stream))
757
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamClosed(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.UnknownStream);
778
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorHeadersInterleaved(_incomingFrame.Type, _incomingFrame.
StreamId
, _currentHeadersStream.StreamId), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.UnexpectedFrame);
793
if (_incomingFrame.
StreamId
== 0)
803
if (_incomingFrame.HeadersHasPriority && _incomingFrame.HeadersStreamDependency == _incomingFrame.
StreamId
)
805
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamSelfDependency(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.StreamSelfDependency);
808
if (_streams.TryGetValue(_incomingFrame.
StreamId
, out var stream))
841
else if (_incomingFrame.
StreamId
<= _highestOpenedStreamId)
850
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamClosed(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.InvalidStreamId);
880
stream.InitializeWithExistingContext(_incomingFrame.
StreamId
);
901
_incomingFrame.
StreamId
,
921
if (_incomingFrame.
StreamId
== 0)
926
if (_incomingFrame.PriorityStreamDependency == _incomingFrame.
StreamId
)
928
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamSelfDependency(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.StreamSelfDependency);
946
if (_incomingFrame.
StreamId
== 0)
958
if (_streams.TryGetValue(_incomingFrame.
StreamId
, out var stream))
986
if (_incomingFrame.
StreamId
!= 0)
1070
if (_incomingFrame.
StreamId
!= 0)
1104
if (_incomingFrame.
StreamId
!= 0)
1150
if (_incomingFrame.
StreamId
== 0)
1157
else if (_streams.TryGetValue(_incomingFrame.
StreamId
, out var stream))
1167
throw new Http2StreamErrorException(_incomingFrame.
StreamId
, CoreStrings.Http2ErrorWindowUpdateSizeInvalid, Http2ErrorCode.FLOW_CONTROL_ERROR);
1187
if (_incomingFrame.
StreamId
!= _currentHeadersStream.StreamId)
1266
_streams[_incomingFrame.
StreamId
] = _currentHeadersStream;
1381
if (_incomingFrame.
StreamId
> _highestOpenedStreamId)
1383
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdle(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.PROTOCOL_ERROR, ConnectionEndReason.InvalidStreamId);
1439
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamClosed(_incomingFrame.Type, _incomingFrame.
StreamId
), Http2ErrorCode.STREAM_CLOSED, ConnectionEndReason.FrameAfterStreamClose);
Internal\Http2\Http2FrameWriter.cs (1)
1040
Bitshifter.WriteUInt31BigEndian(buffer, (uint)frame.
StreamId
, preserveHighestBit: false);
Internal\Infrastructure\KestrelTrace.Http2.cs (2)
41
Http2Log.Http2FrameReceived(_http2Logger, connectionId, frame.Type, frame.
StreamId
, frame.PayloadLength, frame.ShowFlags());
64
Http2Log.Http2FrameSending(_http2Logger, connectionId, frame.Type, frame.
StreamId
, frame.PayloadLength, frame.ShowFlags());
src\Shared\ServerInfrastructure\Http2\Http2Frame.cs (1)
63
return $"{Type} Stream: {
StreamId
} Length: {PayloadLength} Flags: {ShowFlags()}";