Skip to content

HTTP/3: Request and response data rates #32127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 27, 2021
Merged

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Apr 24, 2021

Addresses #29702

@ghost ghost added the area-runtime label Apr 24, 2021
@JamesNK JamesNK changed the title Request and response rate tests HTTP/3: Request and response data rates Apr 24, 2021
case TimeoutReason.WriteDataRate:
Log.ResponseMinimumDataRateNotSatisfied(_context.ConnectionId, traceIdentifier: null);
Abort(new ConnectionAbortedException(CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied), Http3ErrorCode.InternalError);
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems about the same as HttpConnection.OnTimeout(). Do you think it's worth changing Http3ConnectionMiddleware to call through HttpConnection like HttpConnectionMiddleware does?

Then we could make Http3Connection an IRequestProcessor like Http1Connection and Http2Connection giving us greater consistency. HttpConnection itself is pretty small, so I think it be a fairly small change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline. Will attempt in a follow-up PR.

@JamesNK JamesNK force-pushed the jamesnk/requestbodytimeout branch from 6b4e4f9 to 9ea3093 Compare April 27, 2021 04:29
@JamesNK JamesNK merged commit e554803 into main Apr 27, 2021
@JamesNK JamesNK deleted the jamesnk/requestbodytimeout branch April 27, 2021 22:59
@ghost ghost added this to the 6.0-preview5 milestone Apr 27, 2021
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants