Skip to content

Crash in Netty HTTP/3 when maxIdleTimeout is set to very large values #341

@imz87

Description

@imz87

Hi @normanmaurer ,
When using Netty's HTTP/3 support, setting maxIdleTimeout to an extremely large value (e.g., Long.MAX_VALUE) causes the application to crash at runtime. This happens deep in the QUIC/Rust layer.

Stacktrace:

thread '<unnamed>' panicked at octets/src/lib.rs:679:9:

internal error: entered unreachable code

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

fatal runtime error: failed to initiate panic, error 5

Steps to Reproduce:

  • Set maxIdleTimeout to Long.MAX_VALUE or another very large value.
  • Start the application and initiate a HTTP/3 connection by curl.
  • Observe the crash.

I used Oracle OpenJDK15 to test that. IMHO, the API should reject large values with a clear exception. It should not cause a native crash.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions