Skip to content

Commit b2c443b

Browse files
CopilotJamesNK
andcommitted
Simplify UseQuic example to only set MaxBidirectionalStreamCount
Co-authored-by: JamesNK <[email protected]>
1 parent 66a4598 commit b2c443b

File tree

2 files changed

+1
-4
lines changed
  • aspnetcore/fundamentals/servers/kestrel

2 files changed

+1
-4
lines changed

aspnetcore/fundamentals/servers/kestrel/http3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ For more information, see <xref:fundamentals/servers/kestrel/endpoints>.
6969

7070
QUIC transport options can be configured by calling the <xref:Microsoft.AspNetCore.Hosting.WebHostBuilderQuicExtensions.UseQuic%2A> extension method on <xref:Microsoft.AspNetCore.Hosting.IWebHostBuilder>.
7171

72-
:::code language="csharp" source="samples/6.x/KestrelSample/Snippets/Program.cs" id="snippet_UseQuicWithOptions" highlight="3-8":::
72+
:::code language="csharp" source="samples/6.x/KestrelSample/Snippets/Program.cs" id="snippet_UseQuicWithOptions" highlight="3-5":::
7373

7474
The following table describes the available <xref:Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions>:
7575

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,6 @@ public static void UseQuicWithOptions(string[] args)
606606
builder.WebHost.UseQuic(options =>
607607
{
608608
options.MaxBidirectionalStreamCount = 200;
609-
options.MaxUnidirectionalStreamCount = 10;
610-
options.MaxReadBufferSize = 1024 * 1024;
611-
options.MaxWriteBufferSize = 64 * 1024;
612609
});
613610
#pragma warning restore CA2252
614611

0 commit comments

Comments
 (0)