Skip to content

Commit

Permalink
Dispose of linked CTS in QuicListener (#87057)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Jun 3, 2023
1 parent dcbfd80 commit 0071d92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private async void StartConnectionHandshake(QuicConnection connection, SslClient
CancellationToken cancellationToken = default;
try
{
CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(_disposeCts.Token);
using CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(_disposeCts.Token);
linkedCts.CancelAfter(QuicDefaults.HandshakeTimeout);
cancellationToken = linkedCts.Token;
QuicServerConnectionOptions options = await _connectionOptionsCallback(connection, clientHello, cancellationToken).ConfigureAwait(false);
Expand Down

0 comments on commit 0071d92

Please sign in to comment.