FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.9k stars 140 forks source link

Increase timeout on a specific route #1151

Closed HRK44 closed 1 year ago

HRK44 commented 1 year ago

I want to increase the timeout on a specific route that could take ~5min to execute, how could I do that with Foal?

LoicPoullain commented 1 year ago

A priori, it is not possible to do this for a particular route. To apply a different timeout to the whole server, maybe the app.setTimeout method?

HRK44 commented 1 year ago

I'll try that thanks

LoicPoullain commented 1 year ago

Hi @HRK44

Did it work?

HRK44 commented 1 year ago

yes all good @LoicPoullain