Skip to content

Commit f71e440

Browse files
author
ladeak
committed
AllowSynchronousContinuations false
1 parent ab69f1a commit f71e440

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/CHttpServer/CHttpServer/Http2ResponseWriter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Http2ResponseWriter(FrameWriter frameWriter, uint maxFrameSize)
2828
_maxFrameSize = (int)maxFrameSize;
2929
_buffer = [];
3030
_hpackEncoder = new DynamicHPackEncoder();
31-
_channel = Channel.CreateUnbounded<StreamWriteRequest>(new UnboundedChannelOptions() { SingleReader = true, AllowSynchronousContinuations = true });
31+
_channel = Channel.CreateUnbounded<StreamWriteRequest>(new UnboundedChannelOptions() { SingleReader = true, AllowSynchronousContinuations = false });
3232
_priorityChannel = Channel.CreateUnbounded<StreamWriteRequest>(new UnboundedChannelOptions() { SingleReader = true, AllowSynchronousContinuations = false });
3333
}
3434

@@ -198,7 +198,6 @@ private async ValueTask WriteHeadersAsync(Http2Stream h2Stream)
198198
if (flushingBuffer.Length <= currentMaxFrameSize)
199199
{
200200
_frameWriter.WriteHeader(h2Stream.StreamId, flushingBuffer, endHeaders: true, endStream: false);
201-
await _frameWriter.FlushAsync();
202201
return;
203202
}
204203
else

0 commit comments

Comments
 (0)