Skip to content

Allow configuration of header size limits#912

Merged
asvetlov merged 2 commits intoaio-libs:masterfrom
djmitche:issue909
Jul 12, 2016
Merged

Allow configuration of header size limits#912
asvetlov merged 2 commits intoaio-libs:masterfrom
djmitche:issue909

Conversation

@djmitche
Copy link
Copy Markdown
Contributor

@djmitche djmitche commented Jun 3, 2016

Sorry this took me so long ;)

@asvetlov
Copy link
Copy Markdown
Member

asvetlov commented Jun 3, 2016

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

djmitche added 2 commits June 3, 2016 23:01
Users can specify `max_headers`, `max_line_size`, and `max_field_size`
via `app.make_handler()`.  Fixes aio-libs#909.
@djmitche
Copy link
Copy Markdown
Contributor Author

djmitche commented Jun 3, 2016 via email

self._timeout = timeout # slow request timeout
self._loop = loop if loop is not None else asyncio.get_event_loop()

parser_kwargs = {}
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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