We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117003a commit 1393eccCopy full SHA for 1393ecc
src/Servers/Kestrel/Core/src/Internal/Http3/Http3Connection.cs
@@ -927,7 +927,8 @@ internal WebTransportSession OpenNewWebTransportSession(Http3Stream http3Stream)
927
928
private Http3ErrorCode GetErrorCodeOrNoError()
929
{
930
- return _errorCodeFeature.Error <= 0 ? Http3ErrorCode.NoError : (Http3ErrorCode)_errorCodeFeature.Error;
+ // The default error value is -1. If it hasn't been changed before abort is called then default to HTTP/3's NoError value.
931
+ return _errorCodeFeature.Error == -1 ? Http3ErrorCode.NoError : (Http3ErrorCode)_errorCodeFeature.Error;
932
}
933
934
private static class GracefulCloseInitiator
0 commit comments