Skip to content

Default idleTimeout is 30s instead of documented 10s inherited from Bun #1770

@heiwen

Description

@heiwen

Summary

The documentation states that Elysia’s default timeout is inherited from Bun’s default of 10 seconds:

https://elysiajs.com/patterns/configuration

However, since this commit that was released with v1.3.9: 3b3700a, the actual default timeout appears to be 30 seconds.

This creates a discrepancy between the documented and actual behavior.

As a side-note, it might be worth mentioning that the maximum value that Bun supports today is 255s: oven-sh/bun#15589

Suggested Fix

Either:

  • Update the documentation to reflect the 30s default timeout, or
  • Revert the change in the referenced commit to restore the documented 10s behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions