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

user configurable limits #17

Open
nustiueudinastea opened this issue Jan 28, 2011 · 0 comments
Open

user configurable limits #17

nustiueudinastea opened this issue Jan 28, 2011 · 0 comments

Comments

@nustiueudinastea
Copy link

There are some statically defined limits defined in the http11.c and in some (rare) cases they are to small. The constants I am talking about are the following:

DEF_MAX_LENGTH(FIELD_NAME, 256);
DEF_MAX_LENGTH(FIELD_VALUE, 80 * 1024);
DEF_MAX_LENGTH(REQUEST_URI, 1024 * 36);
DEF_MAX_LENGTH(FRAGMENT, 1024); /* Don't know if this length is specified somewhere or not */
DEF_MAX_LENGTH(REQUEST_PATH, 1024);
DEF_MAX_LENGTH(QUERY_STRING, (1024 * 30));
DEF_MAX_LENGTH(HEADER, (1024 * (80 + 32)));

It would be handy of this settings would have these sane default, but also be exposed as configuration parameters for those rare cases when higher limits are needed.

That part of the code is also shared by Thin and Unicorn, so they inherit the same "problem".

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

1 participant