Skip to content

Commit 28f470d

Browse files
author
ladeak
committed
Reverting 2 locks based on review feedback and early measurements
1 parent c6489eb commit 28f470d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Servers/Kestrel/Core/src/Internal/Http2/FlowControl/InputFlowControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal sealed class InputFlowControl
1313
private FlowControl _flow;
1414
private int _pendingUpdateSize;
1515
private bool _windowUpdatesDisabled;
16-
private readonly Lock _flowLock = new();
16+
private readonly object _flowLock = new();
1717

1818
public InputFlowControl(uint initialWindowSize, uint minWindowSizeIncrement)
1919
{

src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal sealed class Http2FrameWriter
8484
private bool _completed;
8585
private bool _aborted;
8686

87-
private readonly Lock _windowUpdateLock = new();
87+
private readonly object _windowUpdateLock = new();
8888
private long _connectionWindow;
8989
private readonly Queue<Http2OutputProducer> _waitingForMoreConnectionWindow = new();
9090
// This is the stream that consumed the last set of connection window

0 commit comments

Comments
 (0)