We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.6.9
Bun (1.1.31)
1.1.31
hono.use("/", timeout(30_000))
Server should not timeout when using a timeout - or this should be settable.
timeout
Server logs:
[Bun.serve]: request timed out after 10 seconds. Pass `idleTimeout` to configure.
Client:
$ curl http://localhost:3000/ curl: (52) Empty reply from server
A minimal proof of concept can be found here: https://github.com/Myzel394/hono-timeout-poc
The text was updated successfully, but these errors were encountered:
Hi @Myzel394
Bun is a timeout in 10s by default.
So, you can try the follows code.
Bun.serve({ ...app, // timeout in 60s idleTimeout: 60 })
Sorry, something went wrong.
Where should I run Bun.serve? I'm using Hono
Bun.serve
at here export default app
export default app
Can confirm this works - although I think this should automagically be handled by hono :D
No branches or pull requests
What version of Hono are you using?
4.6.9
What runtime/platform is your app running on? (with version if possible)
Bun (
1.1.31
)What steps can reproduce the bug?
hono.use("/", timeout(30_000))
What is the expected behavior?
Server should not timeout when using a
timeout
- or this should be settable.What do you see instead?
Server logs:
Client:
Additional information
A minimal proof of concept can be found here: https://github.com/Myzel394/hono-timeout-poc
The text was updated successfully, but these errors were encountered: