You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently run into an issue where I have a memory leak or a route that is running very long/for ever and will eventually break the whole server.
Looks like there is no timeout setable for the route handler in bun, is this correct? Why is that?
All I can do is to call promise.race by myself but with this approch its not possible to cancel any code that is beeing executed at the moment (and might run forever/very long) but will correctly return a 408 Error when the timeout is reached.
Is there any way to solve this?
I found out bluebird has cancelable promises so I thought this feature would be a great addition in bun.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I currently run into an issue where I have a memory leak or a route that is running very long/for ever and will eventually break the whole server.
Looks like there is no timeout setable for the route handler in bun, is this correct? Why is that?
All I can do is to call promise.race by myself but with this approch its not possible to cancel any code that is beeing executed at the moment (and might run forever/very long) but will correctly return a 408 Error when the timeout is reached.
Is there any way to solve this?
I found out bluebird has cancelable promises so I thought this feature would be a great addition in bun.
Beta Was this translation helpful? Give feedback.
All reactions