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

fix: Add (larger) query response size limit #303

Merged
merged 2 commits into from
Nov 7, 2019

Conversation

untitaker
Copy link
Member

actix by default would discard anything above 256kb, let's bump that to 10Mb and make it configurable

@@ -258,6 +258,8 @@ struct Limits {
/// The total number of threads spawned will roughly be `2 * max_thread_count + 1`. Defaults to
/// the number of logical CPU cores on the host.
max_thread_count: usize,
/// The maximum size of a projectconfig query response. Defaults to 10MB
max_query_response_size: ByteSize,
Copy link
Member

Choose a reason for hiding this comment

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

We have max_api_payload_size, let's use this instead.

Copy link
Member

Choose a reason for hiding this comment

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

Since it needs to be symmetric for query forwarding.

@untitaker
Copy link
Member Author

I hereby approve of the changes Jan made.

@untitaker untitaker merged commit 5462123 into master Nov 7, 2019
@untitaker untitaker deleted the fix/query-response-size branch November 7, 2019 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants