-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!The bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedThis issue has been fixedapi-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-kestrel
Milestone
Description
As part of the scenario described by @kevin-montrose in #34344, we'd like for the sockets transport to create a connection context from an already accepted socket. In Kevin's example, the socket is accepted in another process before being marshalled over an IPC mechanism.
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
{
public class SocketTransportFactory
{
public static ConnectionContext CreateConnectionContextFromSocket(Socket socket, SocketTransportOptions options);
}
}The consumer of this API will implement a custom IConnectionListenerFactory and will call this new static method in their IConnectionListener.AcceptAsync implementation
kevin-montrose and TailyFair
Metadata
Metadata
Assignees
Labels
✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!The bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedThis issue has been fixedapi-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-kestrel