Fix failing keep-alive timeout tests.
This commit is contained in:
parent
f2085b1968
commit
5b2065230d
|
|
@ -97,9 +97,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
"GET / HTTP/1.1",
|
"GET / HTTP/1.1",
|
||||||
"",
|
"",
|
||||||
"");
|
"");
|
||||||
await ReceiveResponse(connection, server.Context);
|
|
||||||
await Task.Delay(ShortDelay);
|
await Task.Delay(ShortDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < 10; i++)
|
||||||
|
{
|
||||||
|
await ReceiveResponse(connection, server.Context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -107,7 +111,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
{
|
{
|
||||||
using (var connection = new TestConnection(server.Port))
|
using (var connection = new TestConnection(server.Port))
|
||||||
{
|
{
|
||||||
for (var i = 0; i < 5; i++)
|
for (var i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
await connection.Send(
|
await connection.Send(
|
||||||
"POST / HTTP/1.1",
|
"POST / HTTP/1.1",
|
||||||
|
|
@ -118,9 +122,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
"0",
|
"0",
|
||||||
"",
|
"",
|
||||||
"");
|
"");
|
||||||
await ReceiveResponse(connection, server.Context);
|
|
||||||
await Task.Delay(ShortDelay);
|
await Task.Delay(ShortDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < 10; i++)
|
||||||
|
{
|
||||||
|
await ReceiveResponse(connection, server.Context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue