Home
last modified time | relevance | path

Searched hist:521 (Results 1 – 11 of 11) sorted by last modified time

/unit/src/
H A Dnxt_router.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_conf_validation.cdiff 2265:6c65127da239 Wed May 04 15:13:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Configuration: made large_header_buffer_size a valid setting.

@JanMikes and @tagur87 on GitHub both reported issues with long URLs
that were exceeding the 8192 byte large_header_buffer_size setting,
which resulted in a HTTP 431 error (Request Header Fields Too Large).

This can be resolved in the code by updating the following line in
src/nxt_router.c::nxt_router_conf_create()

skcf->large_header_buffer_size = 8192;

However, requiring users to modify unit and install custom versions is
less than ideal. We could increase the value, but to what?

This commit takes the option of allowing the user to set this option in
their config by making large_header_buffer_size a valid configuration
setting.

large_header_buffer_size is already set by the configuration system in
nxt_router.c it just isn't set as a valid config option in
nxt_conf_validation.c

With this change users can set this option in their config if required
by the following

"settings": {
"http": {
"large_header_buffer_size": 16384
}
},

It retains its default value of 8192 bytes if this is not set.

With this commit, without the above setting or too low a value, with a
long URL you get a 431 error. With the above setting set to a large
enough value, the request is successful.

NOTE: This setting really determines the maximum size of any single
header _value_. Also, unit will try and place multiple values
into a buffer _if_ they fully fit.

NOTE: This is being released as undocumented and subject to change as it
exposes internal workings of unit.

Closes: <https://github.com/nginx/unit/issues/521>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_file.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_conn_close.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_port_socket.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_port_memory.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_work_queue.hdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_malloc.hdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_work_queue.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
H A Dnxt_sendbuf.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.
/unit/src/perl/
H A Dnxt_perl_psgi.cdiff 521:93dc4a28dd37 Wed Feb 07 12:34:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Style fixes.