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