Skip to content

Commit f1f01da

Browse files
Addressed PR feedback.
Added virtual socket again to SocketConnection.cs
1 parent e7b6a95 commit f1f01da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Servers/Kestrel/shared/TransportConnection.FeatureCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CancellationToken IConnectionLifetimeFeature.ConnectionClosed
4343
set => ConnectionClosed = value;
4444
}
4545

46-
Socket? IConnectionSocketFeature.Socket { get; }
46+
Socket? IConnectionSocketFeature.Socket => Socket;
4747

4848
void IConnectionLifetimeFeature.Abort() => Abort(new ConnectionAbortedException("The connection was aborted by the application via IConnectionLifetimeFeature.Abort()."));
4949
}

src/Servers/Kestrel/shared/TransportConnection.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Diagnostics;
77
using System.IO.Pipelines;
88
using System.Net;
9+
using System.Net.Sockets;
910
using System.Threading;
1011
using Microsoft.AspNetCore.Http.Features;
1112

@@ -64,6 +65,8 @@ public override string ConnectionId
6465
}
6566
}
6667

68+
public virtual Socket Socket { get; } = default!;
69+
6770
public override CancellationToken ConnectionClosed { get; set; }
6871

6972
// DO NOT remove this override to ConnectionContext.Abort. Doing so would cause

0 commit comments

Comments
 (0)