make sure we close OS handle if socket is finalized without disposing (dotnet/corefx...
authorTomas Weinfurt <tweinfurt@yahoo.com>
Sun, 16 Jun 2019 04:40:37 +0000 (21:40 -0700)
committerGitHub <noreply@github.com>
Sun, 16 Jun 2019 04:40:37 +0000 (21:40 -0700)
commit81acdda860b1b07824eaf8e95a047e5e557dc449
tree017f934399c76628082f61d40c81fe8fce952df4
parent8de859a12ce2a5020e984ffef5f80756b216e528
make sure we close OS handle if socket is finalized without disposing  (dotnet/corefx#38499)

* socket_finalize_37044

* update test

Commit migrated from https://github.com/dotnet/corefx/commit/23faf5d032feef556f5399b46a92a6e4aef7d84a
src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/DisposedSocketTests.netcoreapp.cs