-
Notifications
You must be signed in to change notification settings - Fork 28
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
Correct way to set aiohttp's client_max_size ? #222
Comments
Hi @SmithChart! I think a settings variable would be the best way to implement this. This way it can be set by the project and by the command via
|
Hi @fscherf, The problem with using the settings (at least as far as I can see) is that settings are loaded by the On a sidenote: |
|
Yes, that's possible. My hack currently looks like:
I'll prepare a PR. That makes discussion easier.
👍 |
I am working on an application where I want to upload files using POST. But files can exceed aiohttp's default client_max_size (https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.Application ) limit.
I am running my server from the command line (aka the Makefile). So the right place to set this limit would be here: https://github.com/lona-web-org/lona/blob/master/lona/command_line/run_server.py#L29
What do you think should be the correct way to set this limit? Add another command line option? Any opinions?
The text was updated successfully, but these errors were encountered: