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

Allow configuration of header size limits #912

Merged
merged 2 commits into from
Jul 12, 2016

Conversation

djmitche
Copy link
Contributor

@djmitche djmitche commented Jun 3, 2016

Sorry this took me so long ;)

@asvetlov
Copy link
Member

asvetlov commented Jun 3, 2016

Please respect pep8: aiohttp/helpers.py:336:80: E501 line too long (92 > 79 characters) ;)

Users can specify `max_headers`, `max_line_size`, and `max_field_size`
via `app.make_handler()`.  Fixes aio-libs#909.
@djmitche
Copy link
Contributor Author

djmitche commented Jun 3, 2016 via email

@@ -103,6 +106,14 @@ def __init__(self, *, loop=None,
self._timeout = timeout # slow request timeout
self._loop = loop if loop is not None else asyncio.get_event_loop()

parser_kwargs = {}
Copy link
Member

Choose a reason for hiding this comment

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

These lines look like python2-ish.
Is there any reason to don't use keyword-only constructor parameters with reasonable default values?

Copy link
Contributor Author

@djmitche djmitche Jun 3, 2016 via email

Choose a reason for hiding this comment

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

@asvetlov asvetlov merged commit 03bbd52 into aio-libs:master Jul 12, 2016
@terrisgit
Copy link

terrisgit commented Feb 21, 2019

What is the right way to set this using an application runner? I googled and read and googled and read.. If not possible via runner then what is the correct modern way?

@lock lock bot added the outdated label Feb 21, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants