118 references to PROTOCOL_ERROR
InMemory.FunctionalTests (77)
Http2\Http2ConnectionTests.cs (53)
1503
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
1518
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
1534
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
1550
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
1582
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
1597
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2323
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorLessDataThanLength);
2612
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2628
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2718
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2752
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2805
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2822
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2838
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2902
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2922
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
2938
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3023
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3038
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3211
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.BadRequest_RequestLineTooLong);
3255
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3271
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3306
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3322
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3580
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3596
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3612
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3650
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3913
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
3920
[InlineData((int)(Http2SettingsParameter.SETTINGS_ENABLE_PUSH), 2, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3921
[InlineData((int)(Http2SettingsParameter.SETTINGS_ENABLE_PUSH), uint.MaxValue, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3924
[InlineData((int)(Http2SettingsParameter.SETTINGS_MAX_FRAME_SIZE), 0, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3925
[InlineData((int)(Http2SettingsParameter.SETTINGS_MAX_FRAME_SIZE), 1, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3926
[InlineData((int)(Http2SettingsParameter.SETTINGS_MAX_FRAME_SIZE), 16 * 1024 - 1, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3927
[InlineData((int)(Http2SettingsParameter.SETTINGS_MAX_FRAME_SIZE), 16 * 1024 * 1024, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3928
[InlineData((int)(Http2SettingsParameter.SETTINGS_MAX_FRAME_SIZE), uint.MaxValue, (int)(Http2ErrorCode.
PROTOCOL_ERROR
))]
3958
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4206
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4247
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4263
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4558
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4575
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4591
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4608
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4644
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4661
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
4677
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
5045
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
5081
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
5098
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
5203
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
5225
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
6024
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
Http2\Http2StreamTests.cs (22)
40
await WaitForConnectionErrorAsync<Exception>(ignoreNonGoAwayFrames: false, 1, Http2ErrorCode.
PROTOCOL_ERROR
, "Malformed request: invalid headers.");
58
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.FormatHttp2ErrorMethodInvalid(""));
77
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.FormatHttp2ErrorMethodInvalid("Hello,World"));
447
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2ErrorConnectMustNotSendSchemeOrPath);
464
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
,
524
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
,
724
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
,
745
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
,
766
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
,
789
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.BadRequest_RequestLineTooLong);
1104
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorLessDataThanLength);
1129
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorLessDataThanLength);
1158
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorMoreDataThanLength);
1162
var expectedError = new Http2StreamErrorException(1, CoreStrings.Http2StreamErrorMoreDataThanLength, Http2ErrorCode.
PROTOCOL_ERROR
);
1193
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorLessDataThanLength);
1197
var expectedError = new Http2StreamErrorException(1, CoreStrings.Http2StreamErrorLessDataThanLength, Http2ErrorCode.
PROTOCOL_ERROR
);
1229
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorMoreDataThanLength);
1233
var expectedError = new Http2StreamErrorException(1, CoreStrings.Http2StreamErrorMoreDataThanLength, Http2ErrorCode.
PROTOCOL_ERROR
);
1265
await WaitForStreamErrorAsync(1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.Http2StreamErrorLessDataThanLength);
1269
var expectedError = new Http2StreamErrorException(1, CoreStrings.Http2StreamErrorLessDataThanLength, Http2ErrorCode.
PROTOCOL_ERROR
);
5833
expectedErrorCode: Http2ErrorCode.
PROTOCOL_ERROR
,
5854
Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.BadRequest_MalformedRequestInvalidHeaders);
Http2\Http2WebSocketTests.cs (2)
297
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.ConnectRequestsWithProtocolRequireSchemeAndPath);
317
await WaitForStreamErrorAsync(expectedStreamId: 1, Http2ErrorCode.
PROTOCOL_ERROR
, CoreStrings.ProtocolRequiresConnect);
Microsoft.AspNetCore.Server.Kestrel.Core (41)
Internal\Http2\Http2Connection.cs (29)
598
SetConnectionErrorCode(ConnectionEndReason.InvalidHttpVersion, Http2ErrorCode.
PROTOCOL_ERROR
);
613
throw new Http2ConnectionErrorException(CoreStrings.Http2ErrorInvalidPreface, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidHandshake);
685
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdEven(_incomingFrame.Type, _incomingFrame.StreamId), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidStreamId);
695
Http2FrameType.PUSH_PROMISE => throw new Http2ConnectionErrorException(CoreStrings.Http2ErrorPushPromiseReceived, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.UnexpectedFrame),
718
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorPaddingTooLong(_incomingFrame.Type), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidDataPadding);
767
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdZero(_incomingFrame.Type), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidStreamId);
772
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdNotZero(_incomingFrame.Type), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidStreamId);
778
return new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorHeadersInterleaved(_incomingFrame.Type, _incomingFrame.StreamId, _currentHeadersStream.StreamId), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.UnexpectedFrame);
800
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorPaddingTooLong(_incomingFrame.Type), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidDataPadding);
805
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamSelfDependency(_incomingFrame.Type, _incomingFrame.StreamId), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.StreamSelfDependency);
831
throw new Http2ConnectionErrorException(CoreStrings.Http2ErrorHeadersWithTrailersNoEndStream, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.MissingStreamEnd);
928
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamSelfDependency(_incomingFrame.Type, _incomingFrame.StreamId), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.StreamSelfDependency);
1057
: Http2ErrorCode.
PROTOCOL_ERROR
;
1147
throw new Http2ConnectionErrorException(CoreStrings.Http2ErrorWindowUpdateIncrementZero, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidWindowUpdateSize);
1188
throw new Http2ConnectionErrorException(CoreStrings.Http2ErrorContinuationWithNoHeaders, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.UnexpectedFrame);
1302
throw new Http2StreamErrorException(_currentHeadersStream.StreamId, CoreStrings.HttpErrorMissingMandatoryPseudoHeaderFields, Http2ErrorCode.
PROTOCOL_ERROR
);
1396
throw new Http2ConnectionErrorException(CoreStrings.FormatHttp2ErrorStreamIdle(_incomingFrame.Type, _incomingFrame.StreamId), Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidStreamId);
1596
throw new Http2ConnectionErrorException(CoreStrings.BadRequest_HeadersExceedMaxTotalSize, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.MaxRequestHeadersTotalSizeExceeded);
1658
throw new Http2ConnectionErrorException(bre.Message, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.MaxRequestHeaderCountExceeded);
1663
throw new Http2ConnectionErrorException(bre.Message, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1667
throw new Http2ConnectionErrorException(CoreStrings.BadRequest_MalformedRequestInvalidHeaders, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1678
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorConnectionSpecificHeaderField, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1689
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorTrailerNameUppercase, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1693
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorHeaderNameUppercase, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1722
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorPseudoHeaderFieldAfterRegularHeaders, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1728
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorTrailersContainPseudoHeaderField, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1737
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorUnknownPseudoHeaderField, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1744
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorResponsePseudoHeaderField, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
1751
throw new Http2ConnectionErrorException(CoreStrings.HttpErrorDuplicatePseudoHeaderField, Http2ErrorCode.
PROTOCOL_ERROR
, ConnectionEndReason.InvalidRequestHeaders);
Internal\Http2\Http2Stream.cs (12)
268
ResetAndAbort(new ConnectionAbortedException(CoreStrings.ConnectRequestsWithProtocolRequireSchemeAndPath), Http2ErrorCode.
PROTOCOL_ERROR
);
277
ResetAndAbort(new ConnectionAbortedException(CoreStrings.Http2ErrorConnectMustNotSendSchemeOrPath), Http2ErrorCode.
PROTOCOL_ERROR
);
288
ResetAndAbort(new ConnectionAbortedException(CoreStrings.ProtocolRequiresConnect), Http2ErrorCode.
PROTOCOL_ERROR
);
304
CoreStrings.FormatHttp2StreamErrorSchemeMismatch(headerScheme, Scheme)), Http2ErrorCode.
PROTOCOL_ERROR
);
335
ResetAndAbort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestLineTooLong), Http2ErrorCode.
PROTOCOL_ERROR
);
355
ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2ErrorMethodInvalid(_methodText)), Http2ErrorCode.
PROTOCOL_ERROR
);
363
ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2ErrorMethodInvalid(_methodText)), Http2ErrorCode.
PROTOCOL_ERROR
);
403
ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail(hostText)), Http2ErrorCode.
PROTOCOL_ERROR
);
416
ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.
PROTOCOL_ERROR
);
455
ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.
PROTOCOL_ERROR
);
494
throw new Http2StreamErrorException(StreamId, CoreStrings.Http2StreamErrorMoreDataThanLength, Http2ErrorCode.
PROTOCOL_ERROR
);
539
throw new Http2StreamErrorException(StreamId, CoreStrings.Http2StreamErrorLessDataThanLength, Http2ErrorCode.
PROTOCOL_ERROR
);