Skip to content

1306 remove upper limit on max header size config - #1313

Merged
berkerpeksag merged 3 commits into
benoitc:masterfrom
tobgu:1306-remove-upper-limit-on-max-header-size-config
Sep 17, 2016
Merged

berkerpeksag merged 3 commits into
benoitc:masterfrom
tobgu:1306-remove-upper-limit-on-max-header-size-config

Conversation

@tobgu

@tobgu tobgu commented Jul 27, 2016

Copy link
Copy Markdown
Contributor

I re-generated the settings.rst file to reflect the updates made to config.py. Not sure if this was a good idea. Partly because some previous changes (not related to this PR) that were previously not included now got included. Partly because some examples now reflect my personal settings rather than those of @benoitc. I can drop those changes if you want.

Apart from that I'd be happy for any comments!

@benoitc

benoitc commented Jul 27, 2016

Copy link
Copy Markdown
Owner

@tobgu patch is ok. Thanks forit! :)

It would be indeed better to have the doc regeneration outside the settings.py update. Can you make the change?

@tobgu

tobgu commented Jul 28, 2016

Copy link
Copy Markdown
Contributor Author

Sure, no problem. I'm away from computers for a couple of days but will fix it once i get back to a sensible device.

@tobgu
tobgu force-pushed the 1306-remove-upper-limit-on-max-header-size-config branch from ea613a2 to b1a17cd Compare August 2, 2016 08:28
@tobgu

tobgu commented Aug 2, 2016

Copy link
Copy Markdown
Contributor Author

Removed the generated RST.

@tobgu

tobgu commented Aug 28, 2016

Copy link
Copy Markdown
Contributor Author

Can this be merged or are there additional things you would like me to update?

Comment thread gunicorn/config.py Outdated
on the allowed size of an HTTP request header field.
Value is a positive number or 0. Setting it to 0 will allow unlimited header field sizes.

Setting this parameter to a very high or unlimited value can open up for DDOS attacks.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since this is important, we could make it a warning:

.. warning::
   Setting [...]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, fixed!

Comment thread .gitignore Outdated
examples/frameworks/pylonstest/pylonstest.egg-info/
examples/frameworks/django/testing/testdb.sql
.tox
venv

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank for updating .gitignore, but these can live in your global .gitconfig.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added the venv because i figured the Makefile made assumptions about the location of the venv but I've removed that now.

Comment thread gunicorn/config.py Outdated

Value is a number from 0 (unlimited) to 8190. to set the limit
on the allowed size of an HTTP request header field.
Value is a positive number or 0. Setting it to 0 will allow unlimited header field sizes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also, please keep line lengths < 80 chars

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@berkerpeksag
berkerpeksag merged commit 70cfb0d into benoitc:master Sep 17, 2016
@berkerpeksag

Copy link
Copy Markdown
Collaborator

Thanks!

mjjbell pushed a commit to mjjbell/gunicorn that referenced this pull request Mar 16, 2018
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.

3 participants