From fffb823e992a90145e319eb2d5702334e2d17a64 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Wed, 22 Mar 2017 10:33:38 -0700 Subject: [PATCH] Dispose socket in test after synchronous connect --- .../AddressRegistrationTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs index 21dba18436..27c5191b7d 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs @@ -562,6 +562,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests } else { + socketArgs.ConnectSocket?.Dispose(); return socketArgs.SocketError == SocketError.Success; } }