Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public async Task Http2_StreamResetByServerBeforePrefix_RequestFailsWithGoawayPr

Http2LoopbackConnection connection = await server.AcceptConnectionAsync(timeout: null);
_ = await connection.ReadSettingsAsync();

// Wait until client starts sending request
_ = await connection.ReadFrameAsync(TestHelper.PassingTestTimeout);
GoAwayFrame goAwayFrame = new GoAwayFrame(lastStreamId: 0, (int)ProtocolErrors.HTTP_1_1_REQUIRED, additionalDebugData: Array.Empty<byte>(), streamId: 0);
await connection.WriteFrameAsync(goAwayFrame);

Expand Down Expand Up @@ -363,6 +364,8 @@ public async Task Http2_IncorrectServerPreface_RequestFailsWithAppropriateHttpPr

Http2LoopbackConnection connection = await server.AcceptConnectionAsync();
await connection.ReadSettingsAsync();
// Wait until client starts sending request
_ = await connection.ReadFrameAsync(TestHelper.PassingTestTimeout);
await connection.SendGoAway(0, ProtocolErrors.INTERNAL_ERROR);

await AssertProtocolErrorAsync(sendTask, ProtocolErrors.INTERNAL_ERROR);
Expand Down
Loading