Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected EOF trying to read request header LoopbackServer #56798

Closed
mdh1418 opened this issue Aug 3, 2021 · 6 comments
Closed

Unexpected EOF trying to read request header LoopbackServer #56798

mdh1418 opened this issue Aug 3, 2021 · 6 comments
Labels
area-System.Net.Http test-run-core Test failures in .NET Core test runs
Milestone

Comments

@mdh1418
Copy link
Member

mdh1418 commented Aug 3, 2021

From work in reenabling tests #56624, it was discovered that a few tests fail for tvOS but not for iOS. From the stack trace, it looks as though ReadLineBytesAsync in the LoopbackServer isn't working properly for tvOS, though it works for iOS. Not sure where the implementation differs between tvOS and iOS in this case.

Test collection for System.Net.Tests.HttpWebRequestTest_Sync
System.Net.Tests.HttpWebRequestTest_Sync.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Sync.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415))\n-------- System.Net.WebException : Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415)\n------------ System.Net.Http.HttpRequestException : Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415)\n---------------- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Operation timed out [::ffff:127.0.0.1]:50415\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellation(CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c0+0x36
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellationAsync(Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c1+0x4
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x215
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000882+0x1b
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x1a
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000841+0xab
   at System.Net.Http.HttpMessageInvoker.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60002ba+0x65
   at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60001e8+0xac
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x2fa
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x1a
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) in System.Net.Sockets.dll:token 0x6000247+0xc3
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0x11b
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) in System.Net.Sockets.dll:token 0x60001cc+0x7c
   at System.Net.Sockets.Socket.Connect(String host, Int32 port) in System.Net.Sockets.dll:token 0x60001cd+0x6d
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0xec
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Sync.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Sync.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515))\n-------- System.Net.WebException : Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515)\n------------ System.Net.Http.HttpRequestException : Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515)\n---------------- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Operation timed out [::ffff:127.0.0.1]:50515\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellation(CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c0+0x36
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellationAsync(Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c1+0x4
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x215
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000882+0x1b
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x1a
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000841+0xab
   at System.Net.Http.HttpMessageInvoker.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60002ba+0x65
   at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60001e8+0xac
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x2fa
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x1a
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) in System.Net.Sockets.dll:token 0x6000247+0xc3
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0x11b
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) in System.Net.Sockets.dll:token 0x60001cc+0x7c
   at System.Net.Sockets.Socket.Connect(String host, Int32 port) in System.Net.Sockets.dll:token 0x60001cd+0x6d
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0xec
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125

Test collection for System.Net.Tests.HttpWebRequestTest_Async
System.Net.Tests.HttpWebRequestTest_Async.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Async.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out (127.0.0.1:50645))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out (127.0.0.1:50645))\n-------- System.Net.WebException : Operation timed out (127.0.0.1:50645)\n------------ System.Net.Http.HttpRequestException : Operation timed out (127.0.0.1:50645)\n---------------- System.Net.Sockets.SocketException : Operation timed out\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.<WaitWithCancellationAsync>d__1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext() in System.Net.Http.dll:token 0x60000c7+0xb2
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x290
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x9c
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) in System.Net.Http.dll:token 0x60001ff+0x204
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x3a8
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x66
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x60002bb+0x2a
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) in System.Net.Sockets.dll:token 0x60002b5+0x38
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x600029e+0xc9
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Async.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Async.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out (127.0.0.1:50739))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out (127.0.0.1:50739))\n-------- System.Net.WebException : Operation timed out (127.0.0.1:50739)\n------------ System.Net.Http.HttpRequestException : Operation timed out (127.0.0.1:50739)\n---------------- System.Net.Sockets.SocketException : Operation timed out\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.<WaitWithCancellationAsync>d__1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext() in System.Net.Http.dll:token 0x60000c7+0xb2
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x290
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x9c
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) in System.Net.Http.dll:token 0x60001ff+0x204
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x3a8
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x66
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x60002bb+0x2a
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) in System.Net.Sockets.dll:token 0x60002b5+0x38
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x600029e+0xc9
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90

@mdh1418 mdh1418 added this to the 7.0.0 milestone Aug 3, 2021
@ghost
Copy link

ghost commented Aug 3, 2021

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

Issue Details

From work in reenabling tests #56624, it was discovered that a few tests fail for tvOS but not for iOS. From the stack trace, it looks as though ReadLineBytesAsync in the LoopbackServer isn't working properly for tvOS, though it works for iOS. Not sure where the implementation differs between tvOS and iOS in this case.

Test collection for System.Net.Tests.HttpWebRequestTest_Sync
System.Net.Tests.HttpWebRequestTest_Sync.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Sync.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415))\n-------- System.Net.WebException : Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415)\n------------ System.Net.Http.HttpRequestException : Operation timed out [::ffff:127.0.0.1]:50415 (127.0.0.1:50415)\n---------------- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Operation timed out [::ffff:127.0.0.1]:50415\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellation(CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c0+0x36
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellationAsync(Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c1+0x4
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x215
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000882+0x1b
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x1a
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000841+0xab
   at System.Net.Http.HttpMessageInvoker.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60002ba+0x65
   at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60001e8+0xac
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x2fa
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x1a
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) in System.Net.Sockets.dll:token 0x6000247+0xc3
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0x11b
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) in System.Net.Sockets.dll:token 0x60001cc+0x7c
   at System.Net.Sockets.Socket.Connect(String host, Int32 port) in System.Net.Sockets.dll:token 0x60001cd+0x6d
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0xec
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Sync.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Sync.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515))\n-------- System.Net.WebException : Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515)\n------------ System.Net.Http.HttpRequestException : Operation timed out [::ffff:127.0.0.1]:50515 (127.0.0.1:50515)\n---------------- System.Net.Internals.SocketExceptionFactory+ExtendedSocketException : Operation timed out [::ffff:127.0.0.1]:50515\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x2c
   at System.Net.Tests.HttpWebRequestTest_Sync.<>c__DisplayClass1_0.<GetResponseAsync>b__0() in System.Net.Requests.Tests.dll:token 0x60002c1+0x0
   at System.Threading.Tasks.Task`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].InnerInvoke() in System.Private.CoreLib.dll:token 0x60033a3+0x25
   at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj) in System.Private.CoreLib.dll:token 0x6003544+0x16
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x36
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6003002+0x79
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in System.Private.CoreLib.dll:token 0x600349e+0xd3
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellation(CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c0+0x36
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].WaitWithCancellationAsync(Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60000c1+0x4
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x215
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000882+0x1b
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x1a
   at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003bc+0x2a
   at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000841+0xab
   at System.Net.Http.HttpMessageInvoker.Send(HttpRequestMessage request, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60002ba+0x65
   at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60001e8+0xac
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x2fa
   at System.Net.HttpWebRequest.GetResponse() in System.Net.Requests.dll:token 0x6000124+0x1a
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) in System.Net.Sockets.dll:token 0x6000247+0xc3
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0x11b
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) in System.Net.Sockets.dll:token 0x60001cc+0x7c
   at System.Net.Sockets.Socket.Connect(String host, Int32 port) in System.Net.Sockets.dll:token 0x60001cd+0x6d
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) in System.Net.Sockets.dll:token 0x60001cb+0xec
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125

Test collection for System.Net.Tests.HttpWebRequestTest_Async
System.Net.Tests.HttpWebRequestTest_Async.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Async.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out (127.0.0.1:50645))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out (127.0.0.1:50645))\n-------- System.Net.WebException : Operation timed out (127.0.0.1:50645)\n------------ System.Net.Http.HttpRequestException : Operation timed out (127.0.0.1:50645)\n---------------- System.Net.Sockets.SocketException : Operation timed out\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000143+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>b__115_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x600016e+0xbb
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.<WaitWithCancellationAsync>d__1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext() in System.Net.Http.dll:token 0x60000c7+0xb2
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x290
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x9c
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) in System.Net.Http.dll:token 0x60001ff+0x204
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x3a8
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x66
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x60002bb+0x2a
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) in System.Net.Sockets.dll:token 0x60002b5+0x38
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x600029e+0xc9
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Async.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: True)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (The operation has timed out.)) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (The operation has timed out.)\n-------- System.Net.WebException : The operation has timed out.\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90
System.Net.Tests.HttpWebRequestTest_Async.HaveResponse_GetResponseAsync_ExpectTrue(useSsl: False)
    System.AggregateException : One or more errors occurred. (One or more errors occurred. (Operation timed out (127.0.0.1:50739))) (One or more errors occurred. (Unexpected EOF trying to read request header))\n---- System.AggregateException : One or more errors occurred. (Operation timed out (127.0.0.1:50739))\n-------- System.Net.WebException : Operation timed out (127.0.0.1:50739)\n------------ System.Net.Http.HttpRequestException : Operation timed out (127.0.0.1:50739)\n---------------- System.Net.Sockets.SocketException : Operation timed out\n---- System.AggregateException : One or more errors occurred. (Unexpected EOF trying to read request header)\n-------- System.IO.IOException : Unexpected EOF trying to read request header
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x247
   at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext() in System.Net.Requests.Tests.dll:token 0x60005e7+0xc4
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options) in System.Net.Requests.Tests.dll:token 0x6000079+0x104
   at System.Net.Tests.HttpWebRequestTest.HaveResponse_GetResponseAsync_ExpectTrue(Boolean useSsl) in System.Net.Requests.Tests.dll:token 0x6000146+0xb4
--- End of stack trace from previous location ---
----- Inner Stack Trace #1 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x7b
   at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar) in System.Net.Requests.dll:token 0x60001da+0x6
   at System.Threading.Tasks.TaskFactory`1[[System.Net.WebResponse, System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) in System.Private.CoreLib.dll:token 0x60033e2+0x2f
--- End of stack trace from previous location ---
   at System.Net.Tests.HttpWebRequestTest.<HaveResponse_GetResponseAsync_ExpectTrue>b__118_0(Uri uri) in System.Net.Requests.Tests.dll:token 0x6000170+0xbe
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x13e
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x34b
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000740+0x145
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000742+0x97
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in System.Net.Http.dll:token 0x6000727+0xd3
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.<WaitWithCancellationAsync>d__1[[System.Net.Http.HttpConnection, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext() in System.Net.Http.dll:token 0x60000c7+0xb2
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000729+0x290
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x97
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.HttpConnectionPool.SendUsingHttp11Async(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000731+0x156
   at System.Net.Http.HttpConnectionPool.DetermineVersionAndSendAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000732+0x2b0
   at System.Net.Http.HttpConnectionPool.SendAndProcessAltSvcAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000733+0x92
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000734+0xa8
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60003f7+0x20d
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x60007f5+0x9c
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) in System.Net.Http.dll:token 0x60001ff+0x204
   at System.Net.HttpWebRequest.SendRequest(Boolean async) in System.Net.Requests.dll:token 0x600012b+0x3a8
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) in System.Net.Requests.dll:token 0x600012d+0x66
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x60002bb+0x2a
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) in System.Net.Sockets.dll:token 0x60002b5+0x38
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) in System.Net.Sockets.dll:token 0x600029e+0xc9
   at System.Net.HttpWebRequest.<>c__DisplayClass216_0.<<CreateHttpClient>b__1>d.MoveNext() in System.Net.Requests.dll:token 0x6000149+0x1b3
--- End of stack trace from previous location ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in System.Net.Http.dll:token 0x6000741+0x140
----- Inner Stack Trace #2 (System.AggregateException) -----
----- Inner Stack Trace -----
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync() in System.Net.Requests.Tests.dll:token 0x600026c+0xf0
   at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody) in System.Net.Requests.Tests.dll:token 0x6000274+0x8c
   at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600027d+0x82
   at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content) in System.Net.Requests.Tests.dll:token 0x600008c+0x125
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in System.Net.Requests.Tests.dll:token 0x6000065+0x90

Author: mdh1418
Assignees: -
Labels:

area-System.Net.Http

Milestone: 7.0.0

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Aug 3, 2021
@ManickaP ManickaP added the os-tvos Apple tvOS label Aug 10, 2021
@steveisok steveisok removed the untriaged New issue has not been triaged by the area owner label Aug 11, 2021
@danmoseley
Copy link
Member

Similar error on Debian.
Console log: 'System.Net.Requests.Tests' from job ad8d304f-ac88-4324-95e3-7d870f0c6515 workitem f6328314-7b39-45d3-b6f1-c06c36eb1830 (debian.9.amd64.open.svc) executed on machine a0004U0

    System.Net.Tests.HttpWebRequestTest_Sync.GetResponseAsync_AllowAutoRedirectFalseWithRedirect_ReturnsRedirectResponse [FAIL]
      System.IO.IOException : Unexpected EOF trying to read request header
      Stack Trace:
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(713,0): at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestHeaderBytesAsync()
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(775,0): at System.Net.Test.Common.LoopbackServer.Connection.ReadRequestDataAsync(Boolean readBody)
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(1013,0): at System.Net.Test.Common.LoopbackServer.Connection.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content)
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(1068,0): at System.Net.Test.Common.LoopbackServer.HandleRequestAsync(HttpStatusCode statusCode, IList`1 headers, String content)
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(64,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(91,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(117,0): at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(101,0): at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
        /_/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs(1300,0): at System.Net.Tests.HttpWebRequestTest.GetResponseAsync_AllowAutoRedirectFalseWithRedirect_ReturnsRedirectResponse()
        --- End of stack trace from previous location ---
  Finished:    System.Net.Requests.Tests

@danmoseley danmoseley removed the os-tvos Apple tvOS label Sep 13, 2021
@danmoseley
Copy link
Member

danmoseley commented Sep 13, 2021

#59047

@karelz karelz added the test-run-core Test failures in .NET Core test runs label May 12, 2022
@karelz karelz changed the title [libraries][tvOS] Unexpected EOF trying to read request header LoopbackServer Unexpected EOF trying to read request header LoopbackServer May 12, 2022
@karelz
Copy link
Member

karelz commented Jul 21, 2022

Triage: Looks like it does not happen that often. We should check which tests are affected. Based on that assign to appropriate milestone.

Searching only for "Unexpected EOF trying to read request header" (across various tests)

Day Run OS Notes
7/15 PR #71385 45 failures - likely caused by the PR
7/8 PR #71795 156 failures - likely caused by the PR
... 3x PRs 1 failure each
6/16 PR #69527 6 failures
... 1x PR 1 failure
6/14 PR #70720 10 failures
... 2x PRs 1 failure each
6/8 PR #70447 2 failures
... 15x PRs + 1x Official run 1 failure each
3/30 PR #67345 4 failures
let failedTests = (methodName : string, includePR : bool, messageSubstr: string, includePassedOnRerun : bool) {
cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
    | where TestName startswith "System.Net" 
    | where includePassedOnRerun or (Outcome == 'Failed')
    | extend startOfTestName = indexof_regex(TestName, @"[^.]+$")
    | extend Method = substring(TestName, startOfTestName)
    | extend Type = substring(TestName, 0, startOfTestName - 1)
    | project-away startOfTestName
    //| where Method == methodName
    | where Message contains messageSubstr
    | distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
    | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
        | where ((Branch == 'refs/heads/main') or (Branch == 'refs/heads/master') or (includePR and (Source startswith "pr/")))
        | where Type startswith "test/functional/cli/"
            and not(Properties contains "runtime-staging")
        | summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName) by JobId
        | project-rename JobType = Type) on JobId
    | extend PropertiesJson = parse_json(Properties)
    | extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
    | extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
    | extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
    | extend Architecture = PropertiesJson.architecture
    | extend Scenario = iif(isempty(PropertiesJson.scenario), "--", PropertiesJson.scenario)
    //| extend DefinitionName = PropertiesJson.DefinitionName
    | project-away PropertiesJson
};
failedTests('', true, 'Unexpected EOF trying to read request header', true);

@karelz karelz self-assigned this Jul 21, 2022
@karelz
Copy link
Member

karelz commented Jul 21, 2022

Triage: Rare kind of failure across multiple tests, mostly affects PRs (1 PR per week) - moving to Future.

@karelz karelz modified the milestones: 7.0.0, Future Jul 21, 2022
@karelz karelz removed their assignment Jul 21, 2022
@rzikm
Copy link
Member

rzikm commented Aug 1, 2024

No recent hits, not actionable at this moment, closing until issue resurfaces.

@rzikm rzikm closed this as completed Aug 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2024
@karelz karelz modified the milestones: Future, 9.0.0 Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http test-run-core Test failures in .NET Core test runs
Projects
None yet
Development

No branches or pull requests

6 participants