Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Fix failing keep-alive timeout tests #1090

Merged
merged 1 commit into from
Sep 9, 2016
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 @@ -97,17 +97,21 @@ await connection.Send(
"GET / HTTP/1.1",
"",
"");
await ReceiveResponse(connection, server.Context);
await Task.Delay(ShortDelay);
}

for (var i = 0; i < 10; i++)
{
await ReceiveResponse(connection, server.Context);
}
}
}

private async Task KeepAliveTimeoutResetsBetweenChunkedRequests(TestServer server)
{
using (var connection = new TestConnection(server.Port))
{
for (var i = 0; i < 5; i++)
for (var i = 0; i < 10; i++)
{
await connection.Send(
"POST / HTTP/1.1",
Expand All @@ -118,9 +122,13 @@ await connection.Send(
"0",
"",
"");
await ReceiveResponse(connection, server.Context);
await Task.Delay(ShortDelay);
}

for (var i = 0; i < 10; i++)
{
await ReceiveResponse(connection, server.Context);
}
}
}

Expand Down