-
Notifications
You must be signed in to change notification settings - Fork 103
feat: allow configuration of max_body_size_limit in upload relay #2809
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
base: main
Are you sure you want to change the base?
Conversation
1bf0cee to
3e7c06a
Compare
|
Warning: This PR modifies one of the example config files. Please consider the
|
3e7c06a to
d88e09a
Compare
halfprice
left a comment
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.
LGTM! It'll be great if we can test that this works as expected, since a simple test case that stores limit size +1 would do it.
| match basic_store_and_read( | ||
| &cluster_client, | ||
| 1, | ||
| BLOB_SIZE, | ||
| Some(upload_relay_client), | ||
| || Ok(()), | ||
| ) |
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.
suggestion: looks like you can add a simple test case where the test tries to store BLOB_SIZE +1, and expect to get rejected.
| tip_config: TipConfig::NoTip, | ||
| tx_freshness_threshold: Duration::from_mins(5), | ||
| tx_max_future_threshold: Duration::from_secs(10), | ||
| max_body_size_limit: BLOB_SIZE, |
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.
question: this could be set to anything that is larger than BLOB_SIZE, is that correct? Any particular reason to use BLOB_SIZE instead of the default_max_body_size_limit() here?
d88e09a to
d48ac69
Compare
|
This PR is stale because it has been open 14 days with no activity. It will be closed in 7 days unless you remove the |
Description
Allow configuration of max_body_size_limit in upload relay.
Test plan
Manual testing. CI Pipeline.