Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DeagleGross committed Jan 21, 2025
1 parent 83c31b0 commit 48911b2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/BenchmarksApps/TLS/Kestrel/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
Console.WriteLine("TLS: " + tlsHandshakeFeature.Protocol);
Console.WriteLine("-----");
}
await next();

await next(context);
});
}

Expand All @@ -123,7 +124,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
connectionIds.Add(context.Connection.Id);
Console.WriteLine($"[stats] unique connections established: {connectionIds.Count}; fetched certificates: {fetchedCertsCounter}");

await next();
await next(context);
});
}

Expand All @@ -143,7 +144,7 @@ bool AllowAnyCertificateValidationWithLogging(X509Certificate2 certificate, X509
Console.WriteLine($"client certificate ({clientCert.Thumbprint}) already exists on the connection {context.Connection.Id}");
}

await next();
await next(context);
});
}

Expand Down Expand Up @@ -206,11 +207,6 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix)
{
switch (version.Trim().ToLower())
{
#pragma warning disable SYSLIB0039 // Type or member is obsolete
case "tls11":
protocols |= SslProtocols.Tls11;
break;
#pragma warning restore SYSLIB0039 // Type or member is obsolete
case "tls12":
protocols |= SslProtocols.Tls12;
break;
Expand Down

0 comments on commit 48911b2

Please sign in to comment.