Skip to content

set custom Bun.serve idleTimeout #3454

Closed

Description

@huseeiin

Describe the feature

add server.bun.idleTimeout to nitro config to set https://bun.sh/docs/api/http#idletimeout
Image

Additional information

  • Would you be willing to help implement this feature?

Activity

  1. added
    pending triage
    on Jul 8, 2025
  2. kirill-dev-pro commented on Jan 8, 2026

    @kirill-dev-pro

    Linking oven-sh/bun#13712
    Im also having this issue

  3. timozander commented on Feb 1, 2026

    @timozander

    Did anyone find a temporary workarround for this? This is causing issues for me

    Edit: Found in the docs that it can be changed via env variable

    Use the NITRO_BUN_IDLE_TIMEOUT environment variable to change the default idleTimeout.

  4. strblr commented on Mar 9, 2026

    @strblr

    @timozander This environment variable doesn't seem to work with nitro 3. Also stuck on this.

  5. b-mounir-dev commented on Jul 11, 2026

    @b-mounir-dev

    I looked into this and Nitro 2 already supported NITRO_BUN_IDLE_TIMEOUT. It looks like that was dropped in Nitro 3 when the Bun server moved to srvx. I have a small patch ready that restores it, keeps 0 working, validates the 0–255 range, and adds regression coverage.

  6. added
    enhancement
    and removed
    pending triage
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions