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 8201939 commit 8e5ed75Copy full SHA for 8e5ed75
src/Servers/Kestrel/Core/src/Middleware/TlsListenerMiddleware.cs
@@ -2,6 +2,7 @@
2
// The .NET Foundation licenses this file to you under the MIT license.
3
4
using System.Buffers;
5
+using System.Diagnostics;
6
using Microsoft.AspNetCore.Connections;
7
8
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Middleware;
@@ -53,6 +54,7 @@ internal async Task OnTlsClientHelloAsync(ConnectionContext connection)
53
54
55
// Here either it's a valid TLS client hello or definitely not a TLS client hello.
56
// Anyway we can continue with the middleware pipeline
57
+ Debug.Assert(parseState is ClientHelloParseState.ValidTlsClientHello or ClientHelloParseState.NotTlsClientHello);
58
break;
59
}
60
0 commit comments