-
Notifications
You must be signed in to change notification settings - Fork 440
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
Perf/read rpc message to end #6951
Conversation
ReadResult readResult = _jsonRpcConfig.MaxRequestBodySize is not null | ||
? await reader.ReadAtLeastAsync((int)_jsonRpcConfig.MaxRequestBodySize.Value) | ||
: await reader.ReadToEndAsync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm torn about this one, @benaadams ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am wondering about adding a timeout also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vs a very slow request; like if the full request takes more than 1sec to receive chop it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some global timeouts on json rpc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will think about it a bit more.
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Would be worth comparing performance on very many batched requests (as many as you can under 30MB request limit) as it might be better or worse than original.
@marcindsobczak Would be worth comparing NewPayload performance with big but reasonable size blocks.
Documentation
Requires documentation update
Requires explanation in Release Notes