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:
- System.Net.Http.Desktop.HttpRequestOut.Start
- System.Net.Http.Desktop.HttpRequestOut.Ex.Stop (got 401)
- System.Net.Http.Desktop.HttpRequestOut.Stop (success)
it's a bit strange... hardly anyone expects to get Stop and Stop.Ex for one request.
see dotnet/corefx#40777 first
forgot to fix for Ex.Stop ? or I'm wrong
runtime/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/HttpHandlerDiagnosticListener.cs
Line 674 in 037e7fc
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:
it's a bit strange... hardly anyone expects to get Stop and Stop.Ex for one request.