Skip to content

Commit

Permalink
fix: set Kestrel limits
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyakunin committed Dec 6, 2023
1 parent 8abc694 commit 6c9851d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/RpcBenchmark/CommandLine/ServerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ public override async Task<int> RunAsync()
limits.MaxConcurrentConnections = 20_000;
limits.MaxConcurrentUpgradedConnections = 20_000;
kestrel.AddServerHeader = false;
// kestrel.ConfigureHttpsDefaults(https => {
// https.SslProtocols = SslProtocols.Tls13;
// });
kestrel.ConfigureHttpsDefaults(https => {
https.AllowAnyClientCertificate();
https.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13;
https.HandshakeTimeout = TimeSpan.FromSeconds(30);
});
var http2 = limits.Http2;
http2.InitialConnectionWindowSize = 10 * 1024 * 1024;
http2.InitialStreamWindowSize = 10 * 768 * 1024;
Expand Down

0 comments on commit 6c9851d

Please sign in to comment.