Skip to content

Allow MAX_URI_LEN to be configurable via ENV variable #3960

@AjitR

Description

@AjitR

Is your feature request related to a problem? Please describe.
Currently there is no way to override the hardcoded MAX_URI_LEN limit in hyper. So it cant be used with legacy systems which supports URI longer than 64K.

2025-09-23T18:42:59.858177Z DEBUG hyper::proto::h1::conn: parse error (URI too long) with 65646 bytes

2025-09-23T18:42:59.858235Z DEBUG hyper::proto::h1::role: sending automatic response (414 URI Too Long) for parse error

2025-09-23T18:42:59.858327Z DEBUG hyper::proto::h1::io: flushed 85 bytes

2025-09-23T18:42:59.858404Z DEBUG hyper::server::server::new_svc: connection error: URI too long

Describe the solution you'd like
ENV variable HYPER_MAX_URI_LEN to configure the desired max uri len. And use default if its not configured.

Describe alternatives you've considered
Currently no alternatives present apart of changing the legacy system which is close to impossible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions