Skip to content

HttpHandlerDiagnosticListener does not send second chain of events if the request was autoredirected on netfx in W3C mode #40777

@eduard-bystrov

Description

@eduard-bystrov

Here from #38152

Request with status code 401(Unauthorized) can be autoredirected, which leads to the execution of the second request on the same object HttpWebRequest (may be HttpRequestMessage too).

If this happens we have the following chain of events:

  1. System.Net.Http.Desktop.HttpRequestOut.Start
  2. System.Net.Http.Desktop.HttpRequestOut.Ex.Stop (got 401)
  3. System.Net.Http.Desktop.HttpRequestOut.Stop (success)

it's a bit strange... hardly anyone expects to get Stop and Stop.Ex for one request.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions