diff --git a/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicConnectionListener.cs b/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicConnectionListener.cs index 9a9528bc04a9516abcef242b9446632196405cfb..38e9b26a19335ef920b1ba8107592d8db61ecc18 100644 --- a/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicConnectionListener.cs +++ b/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicConnectionListener.cs @@ -58,6 +58,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal quicListenerOptions.IdleTimeout = options.IdleTimeout; quicListenerOptions.MaxBidirectionalStreams = options.MaxBidirectionalStreamCount; quicListenerOptions.MaxUnidirectionalStreams = options.MaxUnidirectionalStreamCount; + quicListenerOptions.ListenBacklog = options.Backlog; _listener = new QuicListener(quicListenerOptions); diff --git a/src/Servers/Kestrel/Transport.Quic/src/PublicAPI.Unshipped.txt b/src/Servers/Kestrel/Transport.Quic/src/PublicAPI.Unshipped.txt index 4ab5cd10661e514df647a127111dda0792dfb7af..3abb58e9da0a415ba44758a8f19a0aa7a371a78b 100644 --- a/src/Servers/Kestrel/Transport.Quic/src/PublicAPI.Unshipped.txt +++ b/src/Servers/Kestrel/Transport.Quic/src/PublicAPI.Unshipped.txt @@ -26,6 +26,8 @@ *REMOVED*~static Microsoft.AspNetCore.Hosting.WebHostBuilderMsQuicExtensions.UseQuic(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) -> Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.WebHostBuilderQuicExtensions Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions +Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions.Backlog.get -> int +Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions.Backlog.set -> void Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions.IdleTimeout.get -> System.TimeSpan Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions.IdleTimeout.set -> void Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportOptions.MaxBidirectionalStreamCount.get -> ushort diff --git a/src/Servers/Kestrel/Transport.Quic/src/QuicTransportOptions.cs b/src/Servers/Kestrel/Transport.Quic/src/QuicTransportOptions.cs index 5041b274b9425dadf56dca70ffc02b914741ac3e..0a1396a842f124788cffb25bf76201bf2d891ae2 100644 --- a/src/Servers/Kestrel/Transport.Quic/src/QuicTransportOptions.cs +++ b/src/Servers/Kestrel/Transport.Quic/src/QuicTransportOptions.cs @@ -40,6 +40,11 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Quic /// </summary> public long? MaxWriteBufferSize { get; set; } = 64 * 1024; + /// <summary> + /// The maximum length of the pending connection queue. + /// </summary> + public int Backlog { get; set; } = 512; + internal ISystemClock SystemClock = new SystemClock(); } }