Avoid wrapping async I/O in synchronous methods in the HTTP tests, as this can lead...
authorEric Eilebrecht <ericeil@hotmail.com>
Wed, 13 Jul 2016 20:09:05 +0000 (13:09 -0700)
committerEric Eilebrecht <ericeil@hotmail.com>
Wed, 13 Jul 2016 22:19:30 +0000 (15:19 -0700)
commitb42148aeae5f49b4b96a851ccf0caeb1728c7499
treeb869aaa7beb20cb0149bef2cd088b6361d927c27
parent9826008396a215b9929f7f97e350646e9aac3f9d
Avoid wrapping async I/O in synchronous methods in the HTTP tests, as this can lead to ThreadPool starvation, causing tests to run longer (waiting for the ThreadPool to inject enough threads) and possibly to time out.

Commit migrated from https://github.com/dotnet/corefx/commit/af17a7ab4bd0630f71e44bbe566bb712aeb86b5c
src/libraries/Common/tests/System/IO/DelegateStream.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.cs