Skip to content

Commit d1a5c53

Browse files
CopilotJamesNK
andcommitted
Address code review feedback - update MaxBidirectionalStreamCount and remove pragma
Co-authored-by: JamesNK <[email protected]>
1 parent 139a270 commit d1a5c53

File tree

1 file changed

+1
-3
lines changed
  • aspnetcore/fundamentals/servers/kestrel/samples/6.x/KestrelSample/Snippets

1 file changed

+1
-3
lines changed

aspnetcore/fundamentals/servers/kestrel/samples/6.x/KestrelSample/Snippets/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public static void UseQuicWithOptions(string[] args)
605605
#pragma warning disable CA2252 // Using preview features
606606
builder.WebHost.UseQuic(options =>
607607
{
608-
options.MaxBidirectionalStreamCount = 100;
608+
options.MaxBidirectionalStreamCount = 200;
609609
options.MaxUnidirectionalStreamCount = 10;
610610
options.MaxReadBufferSize = 1024 * 1024;
611611
options.MaxWriteBufferSize = 64 * 1024;
@@ -616,9 +616,7 @@ public static void UseQuicWithOptions(string[] args)
616616
{
617617
serverOptions.ListenAnyIP(5001, listenOptions =>
618618
{
619-
#pragma warning disable CA2252 // Using preview features
620619
listenOptions.Protocols = HttpProtocols.Http1AndHttp2AndHttp3;
621-
#pragma warning restore CA2252
622620
listenOptions.UseHttps();
623621
});
624622
});

0 commit comments

Comments
 (0)