Skip to content

Commit

Permalink
Add Backlog to QuicTransportOptions (#35312)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgodbe authored Aug 13, 2021
1 parent 5dc3a5c commit c4690bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public QuicConnectionListener(QuicTransportOptions options, IQuicTrace log, EndP
quicListenerOptions.IdleTimeout = options.IdleTimeout;
quicListenerOptions.MaxBidirectionalStreams = options.MaxBidirectionalStreamCount;
quicListenerOptions.MaxUnidirectionalStreams = options.MaxUnidirectionalStreamCount;
quicListenerOptions.ListenBacklog = options.Backlog;

_listener = new QuicListener(quicListenerOptions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public class QuicTransportOptions
/// </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();
}
}

0 comments on commit c4690bf

Please sign in to comment.