Skip to content

Commit 4cff31f

Browse files
author
ladeak
committed
Reverting 2 locks based on review feedback and early measurements
1 parent c4f92f7 commit 4cff31f

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
@@ -25,7 +25,7 @@ internal sealed class InputFlowControl
2525
private FlowControl _flow;
2626
private int _pendingUpdateSize;
2727
private bool _windowUpdatesDisabled;
28-
private readonly Lock _flowLock = new();
28+
private readonly object _flowLock = new();
2929

3030
public InputFlowControl(uint initialWindowSize, uint minWindowSizeIncrement)
3131
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ internal sealed class Http2FrameWriter
9999
private bool _completed;
100100
private bool _aborted;
101101

102-
private readonly Lock _windowUpdateLock = new();
102+
private readonly object _windowUpdateLock = new();
103103
private long _connectionWindow;
104104
private readonly Queue<Http2OutputProducer> _waitingForMoreConnectionWindow = new();
105105
// This is the stream that consumed the last set of connection window

0 commit comments

Comments
 (0)