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 @@ -2065,7 +2065,7 @@ public async Task Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_
const int MaxConcurrentStreams = 2;
using Http2LoopbackServer server = Http2LoopbackServer.CreateServer();
using SocketsHttpHandler handler = CreateHandler();
handler.PooledConnectionIdleTimeout = TimeSpan.FromSeconds(5);
handler.PooledConnectionIdleTimeout = TimeSpan.FromSeconds(10);
using (HttpClient client = CreateHttpClient(handler))
{
server.AllowMultipleConnections = true;
Expand All @@ -2076,7 +2076,7 @@ public async Task Http2_MultipleConnectionsEnabled_IdleConnectionTimeoutExpired_
Assert.Equal(MaxConcurrentStreams, acceptedStreamIds.Count);

List<Task<HttpResponseMessage>> connection1SendTasks = new List<Task<HttpResponseMessage>>();
Http2LoopbackConnection connection1 = await PrepareConnection(server, client, MaxConcurrentStreams, readTimeout: 10).ConfigureAwait(false);
Http2LoopbackConnection connection1 = await PrepareConnection(server, client, MaxConcurrentStreams, readTimeout: 15).ConfigureAwait(false);
AcquireAllStreamSlots(server, client, connection1SendTasks, MaxConcurrentStreams);
int handledRequests1 = (await HandleAllPendingRequests(connection1, MaxConcurrentStreams).ConfigureAwait(false)).Count;

Expand Down