Skip to content

Commit 6046ad2

Browse files
authored
Remove handle inheritance workaround Kestrel/#3040 (#5000)
1 parent 3c09d64 commit 6046ad2

File tree

3 files changed

+1
-94
lines changed

3 files changed

+1
-94
lines changed

src/Servers/Kestrel/Transport.Sockets/src/Internal/NativeMethods.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/Servers/Kestrel/Transport.Sockets/src/SocketTransport.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
@@ -80,7 +80,6 @@ public Task BindAsync()
8080
IPEndPoint endPoint = _endPointInformation.IPEndPoint;
8181

8282
var listenSocket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
83-
NativeMethods.DisableHandleInheritance(listenSocket);
8483

8584
// Kestrel expects IPv6Any to bind to both IPv6 and IPv4
8685
if (endPoint.Address == IPAddress.IPv6Any)

src/Servers/Kestrel/test/FunctionalTests/HandleInheritanceTests.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)