Skip to content

Set Kemal max_request_line_size to 16384 for large channel continuation query parameters.#5566

Merged
unixfox merged 2 commits intoiv-org:masterfrom
Fijxu:configurable-max-request-line-size
Dec 15, 2025
Merged

Set Kemal max_request_line_size to 16384 for large channel continuation query parameters.#5566
unixfox merged 2 commits intoiv-org:masterfrom
Fijxu:configurable-max-request-line-size

Conversation

@Fijxu
Copy link
Copy Markdown
Member

@Fijxu Fijxu commented Dec 14, 2025

Supersedes #5394
Fixes #5529

hellosunghyun and others added 2 commits July 21, 2025 13:05
This commit adds a new configuration option `max_request_line_size` that allows
users to increase the HTTP request line size limit. This is particularly useful
for handling very long continuation tokens that can cause 414 (URI Too Long) errors.

Changes:
- Add `max_request_line_size` property to Config class
- Configure Kemal server to use the custom limit if specified
- Document the option in config.example.yml with recommendations
- Add examples in docker-compose.yml for both YAML and env var configuration

The default behavior remains unchanged (8KB limit) unless explicitly configured.
This provides a solution for users experiencing 414 errors without affecting
existing installations.
@Fijxu Fijxu requested a review from unixfox December 14, 2025 22:12
Fijxu added a commit to iv-org/documentation that referenced this pull request Dec 14, 2025
@unixfox unixfox merged commit aba31a8 into iv-org:master Dec 15, 2025
8 of 9 checks passed
@syeopite syeopite added this to the Next release milestone Dec 19, 2025
unixfox added a commit that referenced this pull request Feb 7, 2026
Co-authored-by: Fijxu <fijxu@nadeko.net>
unixfox added a commit that referenced this pull request Feb 7, 2026
* Release v2.20260207.0

* Fix release notes for Crystal/OpenSSL

* fix comment about pr #5566, #5338

Co-authored-by: Fijxu <fijxu@nadeko.net>

* fix comment about memory leaks

Co-authored-by: Fijxu <fijxu@nadeko.net>

* Clarify release notes for proxy header stripping

---------

Co-authored-by: Fijxu <fijxu@nadeko.net>
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.

[Bug] 414 URI Too Long when trying to move onto the next page

4 participants