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 7bd2b0c commit 8abc694
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RpcBenchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Net;
using Ookii.CommandLine;
using Ookii.CommandLine.Commands;

Expand All @@ -11,6 +12,9 @@ public static class Program

public static async Task<int> Main(string[] args)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12;
TreatControlCAsInput = false;
CancelKeyPress += (_, ea) => {
StopTokenSource.Cancel();
Expand Down

0 comments on commit 8abc694

Please sign in to comment.