Update Http3Connection lock objects to be readonly (#22263)

This commit is contained in:
Huei Feng 2020-05-29 05:18:14 +08:00 committed by GitHub
parent 278715734e
commit 3064728c05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -31,13 +31,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http3
private long _highestOpenedStreamId; // TODO lock to access
private volatile bool _haveSentGoAway;
private object _sync = new object();
private readonly object _sync = new object();
private MultiplexedConnectionContext _multiplexedContext;
private readonly Http3ConnectionContext _context;
private readonly ISystemClock _systemClock;
private readonly TimeoutControl _timeoutControl;
private bool _aborted;
private object _protocolSelectionLock = new object();
private readonly object _protocolSelectionLock = new object();
public Http3Connection(Http3ConnectionContext context)
{