FoalTS / foal

Full-featured Node.js framework 🚀
https://foalts.org/
MIT License
1.9k stars 142 forks source link

Increase timeout on a specific route #1151

Closed HRK44 closed 2 years ago

HRK44 commented 2 years 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 2 years 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 2 years ago

I'll try that thanks

LoicPoullain commented 2 years ago

Hi @HRK44

Did it work?

HRK44 commented 2 years ago

yes all good @LoicPoullain