Skip to content
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

RPC 100-continue and max request size #1819

Merged
merged 2 commits into from
Mar 14, 2019

Conversation

cryptocode
Copy link
Contributor

@cryptocode cryptocode commented Mar 11, 2019

Closes #1671

We've had reports of RPC requests sometimes taking 1 second before being handled. Some clients, such as curl (and Python wrappers), sends an Expect: 100-continue header for large requests (per rfc7231). These clients typically wait one second for the header response before sending the body (a workaround in curl is to use -H Expect:)

The PR also adds the ability to restrict request body sizes via config.json. The proposed default limit is 32MB (this must be large enough for services - opinions welcome)

@cryptocode cryptocode added this to the V19.0 milestone Mar 11, 2019
@cryptocode cryptocode self-assigned this Mar 11, 2019
@cryptocode cryptocode requested review from argakiig and SergiySW March 11, 2019 19:32
@cryptocode cryptocode added the incomplete This item is incomplete and should not be merged if it is a pull request label Mar 11, 2019
@cryptocode cryptocode removed the incomplete This item is incomplete and should not be merged if it is a pull request label Mar 13, 2019
@cryptocode cryptocode merged commit 9e71239 into nanocurrency:master Mar 14, 2019
@cryptocode cryptocode deleted the rpc-expect-100 branch March 14, 2019 09:13
@zhyatt zhyatt added the documentation This item indicates the need for or supplies updated or expanded documentation label Mar 14, 2019
@zhyatt zhyatt removed the documentation This item indicates the need for or supplies updated or expanded documentation label Jul 11, 2019
@zhyatt zhyatt added rpc Changes related to Remote Procedure Calls and removed rpc nonbreaking change labels Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rpc Changes related to Remote Procedure Calls
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate supporting the Expect header in RPC
4 participants