Skip to content

Disable request body data rate limits per HTTP/2 stream #7635

Closed
@JunTaoLuo

Description

@JunTaoLuo

Epic #8858

Currently we can disable the request body data rate limit for the entire server with

                    webBuilder.ConfigureKestrel(options =>
                    {
                        options.Limits.MinRequestBodyDataRate = null;
                    });

However, we want to be able to control this on a finer scale of per request/stream. We need this in since certain gRPC endpoints are client streaming methods which may not satisfy the request body data rate while all other endpoints of the app should still be subject to the request body data rate. Websocket scenarios will also benefit from this feature.

To implement this feature, it's likely we'll need to overhaul the accounting for request data rates. @halter73 has more context about the implementation here.

cc @Tratcher @davidfowl

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedHTTP2area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-kestrel

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions