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

Max SCGI content size too small #874

Open
lps-rocks opened this issue May 22, 2019 · 7 comments
Open

Max SCGI content size too small #874

lps-rocks opened this issue May 22, 2019 · 7 comments

Comments

@lps-rocks
Copy link
Contributor

lps-rocks commented May 22, 2019

static const int max_content_size = (2 << 20);

This limits a max raw.load to 2MB - Should be increased or be made into a user setting based setting to match the xmlrpc size since XMLRPC rides on top of this SCGI protocol handler.

@kannibalox
Copy link
Contributor

Looks like it's actually 2MB, but excellent find. I'd be in favor of setting the hard coded limit to something large like 32MB and letting network.xmlrpc.size_limit remain the sole user controlled setting.

@lps-rocks
Copy link
Contributor Author

Looks like it's actually 2MB, but excellent find. I'd be in favor of setting the hard coded limit to something large like 32MB and letting network.xmlrpc.size_limit remain the sole user controlled setting.

Oops. Yup - i was off by one bit. I believe network.xmlrpc.size_limit has a maximum value of 16MB. I think synchronizing this limit with that one would be beneficial.

@xiayyu
Copy link

xiayyu commented May 28, 2019

I tested using a lager max_content_size 1 << 24 (16M), which would allow us to add a lager torrent (>2M) via xmlrpc. Only change network.xmlrpc.size_limit alone won't help.

@lps-rocks
Copy link
Contributor Author

I tested using a lager max_content_size 1 << 24 (16M), which would allow us to add a lager torrent (>2M) via xmlrpc. Only change network.xmlrpc.size_limit alone won't help.

That's the exact setting I used too since the max setting for network.xmlrpc.size_limit is 16M

@lps-rocks
Copy link
Contributor Author

@rakshasa - Can this be merged in as soon as possible since it severely breaks SCGI?

@rakshasa
Copy link
Owner

@rakshasa - Can this be merged in as soon as possible since it severely breaks SCGI?

Make a pull request and I'll merge it.

@grigorescu
Copy link

Fixed in 14d7121

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

No branches or pull requests

5 participants