]> git.kaiwu.me - nginx.git/commit
Control API: fixed handling of oversized requests
author최대우 (Daewoo Choi) <daewoo.choi@hanwha.com>
Mon, 2 Nov 2026 04:07:30 +0000 (13:07 +0900)
committerAva Hahn <110854134+avahahn@users.noreply.github.com>
Wed, 4 Nov 2026 16:16:34 +0000 (08:16 -0800)
commit050076e2b4a5cd7cb701a97b6b85c51b99382910
treeda10ccd2d071a5c8aacfc371f45958d8e2fb081f
parent67290bfea61c81347464539f5e6d0a7cebec1fc8
Control API: fixed handling of oversized requests

A request line larger than the receive buffer was answered with no
response at all, while every other malformed request gets a status
code.  The buffer-full check also ran at the start of the next read
event, which may never arrive, since SIGIO is raised by new data.
The check is now made after parsing, so 400 is returned right away.
src/os/unix/ngx_control.c