-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Conversation
The test was hanging on most handlers except for SocketsHttpHandler. It was hanging because the await'ed task of connecting to the proxy never happened. Except for SocketsHttpHandler, the other handlers optimize loopback so that if the destination server is on loopback, then it ignores any proxy setting. The test was using both a loopback destination server as well as a loopback proxy server. This test is one of the few tests that do an end-to-end request/response thru a proxy. So, it's important that we keep the test and have it work on all handlers. Modified the test to use a real external server destination. The test still uses a loopback proxy server. I also moved some of the Outerloop tests to Innerloop since those tests were using loopback. Fixes #27746
@@ -2230,7 +2221,7 @@ public void GetAsync_ServerNeedsAuthAndNoCredential_StatusCodeUnauthorized() | |||
server => server.AcceptConnectionSendResponseAndCloseAsync()); | |||
} | |||
|
|||
[OuterLoop] // TODO: Issue #11345 | |||
[OuterLoop("Multiple connections")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this one need to be outerloop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was concerned at first that it might take a longer time since it used multiple connections. But we can probably get rid of the Outerloop.
await serverTask; | ||
}, options); | ||
await proxy; | ||
await TaskTimeoutExtensions.WhenAllOrAnyFailed(new Task[] { proxyTask }, TestHelper.PassingTestTimeoutMilliseconds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't waiting on multiple tasks anymore, so the WhenAllOrAnyFailed isn't needed. It can instead be:
await proxyTask.TimeoutAfter(TestHelper.PassingTestTimeoutMilliseconds);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. I'll change that.
@dotnet-bot test Outerloop Windows x64 Debug Build |
Unrelated CI failures in XsltCompiler tests on RS4: |
The test was hanging on most handlers except for SocketsHttpHandler. It was hanging because the await'ed task of connecting to the proxy never happened. Except for SocketsHttpHandler, the other handlers optimize loopback so that if the destination server is on loopback, then it ignores any proxy setting. The test was using both a loopback destination server as well as a loopback proxy server. This test is one of the few tests that do an end-to-end request/response thru a proxy. So, it's important that we keep the test and have it work on all handlers. Modified the test to use a real external server destination. The test still uses a loopback proxy server. I also moved some of the Outerloop tests to Innerloop since those tests were using loopback. Fixes #27746
The test was hanging on most handlers except for SocketsHttpHandler. It was hanging because the await'ed task of connecting to the proxy never happened. Except for SocketsHttpHandler, the other handlers optimize loopback so that if the destination server is on loopback, then it ignores any proxy setting. The test was using both a loopback destination server as well as a loopback proxy server. This test is one of the few tests that do an end-to-end request/response thru a proxy. So, it's important that we keep the test and have it work on all handlers. Modified the test to use a real external server destination. The test still uses a loopback proxy server. I also moved some of the Outerloop tests to Innerloop since those tests were using loopback. Fixes dotnet/corefx#27746 Commit migrated from dotnet/corefx@2edbc59
The test was hanging on most handlers except for SocketsHttpHandler. It was hanging because
the await'ed task of connecting to the proxy never happened. Except for SocketsHttpHandler,
the other handlers optimize loopback so that if the destination server is on loopback, then it
ignores any proxy setting. The test was using both a loopback destination server as well as a
loopback proxy server.
This test is one of the few tests that do an end-to-end request/response thru a proxy. So, it's
important that we keep the test and have it work on all handlers. Modified the test to use a real
external server destination. The test still uses a loopback proxy server.
I also moved some of the Outerloop tests to Innerloop since those tests were using loopback.
Fixes #27746