Skip to content

Raise httpc's header limit for NIF downloads - #2

Open
georgeguimaraes wants to merge 1 commit into
dannote:masterfrom
georgeguimaraes:raise-httpc-header-limit
Open

georgeguimaraes wants to merge 1 commit into
dannote:masterfrom
georgeguimaraes:raise-httpc-header-limit

Conversation

@georgeguimaraes

@georgeguimaraes georgeguimaraes commented Oct 24, 2026 •

Copy link
Copy Markdown

Since 2026-10-23, GitHub's release-download redirects send about 11 KB of headers, which is over :httpc's 10 KB default. So NIF downloads fail with {:header_too_long, {:max, 10240}}.

This bumps max_header_size to 64 KiB. The new test redirects with a 12 KB header, and it fails without the fix. Same fix as tailwind#142, rustler_precompiled#113, elixir_make#98 and xla#135.

Since 2026-10-23, GitHub release-download redirects send about 11 KB of response headers. :httpc accepts 10 KB by default, so the download fails with {:header_too_long, {:max, 10240}}. This change sets max_header_size to 65_536, the same value as the fixes in rustler_precompiled, elixir_make and xla.
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.

1 participant