Skip to content

HttpHandlerDiagnosticListener did not send DiagnosticSource Ex.Stop event on netfx in W3C mode #40777 #38152

Description

@eduard-bystrov

see dotnet/corefx#40777 first

forgot to fix for Ex.Stop ? or I'm wrong

if (request.Headers.Get(RequestIdHeaderName) != null && IsLastResponse(request, statusCode))


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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions