You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changes
Buffer HTTP request headers until the complete header block arrives, preventing fragmented Proxy-Authorization headers from reaching upstream services. Proxy-only authentication headers are removed before forwarding.
Reject headers larger than 16 KiB with 431 and close incomplete headers after five seconds with 408.
Limit clients to 256 connections per worker by default and bound data queued while an upstream connection is pending.
Clean up pending timers and upstream connections when a client disconnects.
Изменения
HTTP-запрос теперь накапливается до полного блока заголовков. Фрагментированный Proxy-Authorization не попадёт на upstream; служебные заголовки прокси удаляются перед пересылкой.
Заголовки больше 16 КиБ отклоняются с 431, незавершённый блок закрывается через пять секунд с 408.
По умолчанию разрешено до 256 клиентских соединений на worker; очередь данных во время подключения upstream ограничена.
При отключении клиента освобождаются таймеры и upstream-соединение.