Skip to content

Commit

Permalink
Add Log to SendStreamLimit Http3 Test (#100857)
Browse files Browse the repository at this point in the history
* Add Log to SendStreamLimit Http3 Test

* Add one more log and fix timestamps
  • Loading branch information
liveans authored Apr 10, 2024
1 parent 39b4878 commit 36f0c66
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public async Task SendStreamLimitRequestsConcurrently_Succeeds(int streamLimit)
{
await using Http3LoopbackStream stream = await connection.AcceptRequestStreamAsync();
await stream.HandleRequestAsync();
_output.WriteLine($"[{DateTime.Now:HH:mm:ss.fffffff}] Server: Finished request {i}");
}
});

Expand All @@ -156,9 +157,11 @@ public async Task SendStreamLimitRequestsConcurrently_Succeeds(int streamLimit)
};
tasks[i] = client.SendAsync(request);
_output.WriteLine($"[{DateTime.Now:HH:mm:ss.fffffff}] Client: Started request {i}");
});
var responses = await Task.WhenAll(tasks);
_output.WriteLine($"[{DateTime.Now:HH:mm:ss.fffffff}] Client: Got all responses");
foreach (var response in responses)
{
response.Dispose();
Expand Down

0 comments on commit 36f0c66

Please sign in to comment.