Skip to content

Add NamedPipeTransportOptions.ListenerQueueCount property #46268

Closed
@JamesNK

Description

@JamesNK

Background and Motivation

There are performance benefits of multiple listen queues with named pipes. This property allows someone to customize the number.

Proposed API

namespace Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes;

public sealed class NamedPipeTransportOptions
{
+    public int ListenerQueueCount { get; set; } = Math.Min(Environment.ProcessorCount, 16);
}

Usage Examples

services.Configure<NamedPipeTransportOptions>(o =>
{
    o.ListenerQueueCount = 2;
});

Alternative Designs

Risks

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions