Skip to content

Comments

Enable additional event listener logging in TimeInQueue_RecordedForNewConnectionsOnly#124740

Draft
kuba1 wants to merge 3 commits intodotnet:mainfrom
kuba1:issue-122522
Draft

Enable additional event listener logging in TimeInQueue_RecordedForNewConnectionsOnly#124740
kuba1 wants to merge 3 commits intodotnet:mainfrom
kuba1:issue-122522

Conversation

@kuba1
Copy link

@kuba1 kuba1 commented Feb 23, 2026

This change enables and prints to test output event listener entries from System.Net.Http allowing to see what's happening inside HttpConnectionPool when this test is run. This in turn will hopefully help to diagnose why the test is failing.

…wConnectionsOnly

This change enables and prints to test output event listener entries
from System.Net.Http allowing to see what's happening inside
HttpConnectionPool when this test is run. This in turn will hopefully
help to diagnose why the test is failing.
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Feb 23, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@kuba1
Copy link
Author

kuba1 commented Feb 23, 2026

@dotnet-policy-service agree


return LoopbackServerFactory.CreateClientAndServerAsync(async uri =>
{
using var eventListener = new NetEventListener(_output);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, there's already TestUtilities.TestEventListener.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks. Looks much better indeed.

Use TestEventListener from TestUtilities to listen to relevant HTTP
events.
Simplify additional logging as it's unnecessarily verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net.Http community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants