LoopbackProxyServer cleanup (dotnet/corefx#38038)
authorCory Nelson <phrosty@gmail.com>
Tue, 4 Jun 2019 18:04:49 +0000 (11:04 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2019 18:04:49 +0000 (11:04 -0700)
commitf0979b13f65bbc68cf68279a3c8b18830b0174c1
tree85cd356e1e9fa38f94ae7a15095897f598dc8727
parent4d115ab514e4c5f4d2e18487a3a3fad978025024
LoopbackProxyServer cleanup (dotnet/corefx#38038)

* Resolves dotnet/corefx#32808.

Ensure all connections are finished prior to Dispose() returning.
Shutdown CONNECT sessions properly.
Dispose sockets rather than relying on finalizers.
Eat fewer errors automatically.
Send errors to an event source to assist with troubleshooting.

Commit migrated from https://github.com/dotnet/corefx/commit/055dd469f7d402f496fcab31ae91e80efd474fa9
src/libraries/Common/tests/System/Net/EventSourceTestLogging.cs
src/libraries/Common/tests/System/Net/Http/LoopbackProxyServer.cs
src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj