Skip to content

System.Net.Dns.RunAsync() does not decrement telemetry for canceled requests #92045

@sandersaares

Description

@sandersaares

If a call that ends up in Dns.RunAsync() is canceled, nothing ever calls NameResolutionTelemetry.AfterResolution() and so the variable NameResolutionTelemetry._currentLookups remains forever incremented by one.

The unmatched BeforeResolution() is called in Dns.RunAsync() here: https://github.com/dotnet/runtime/blob/9101b853a1f5194de3e7bc495454a57df0da300e/src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs#L652C16-L652C16

image

Metadata

Metadata

Assignees

Labels

area-System.Netbugin-prThere is an active PR which will close this issue when it is mergedtenet-reliabilityReliability/stability related issue (stress, load problems, etc.)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions