c# 4.0 - NancyFx: Set response timeout on specific route -


short description of problem: need set timeout on specific route within nancyfx.

the long description: have route which, when called, loads large number of files (between 50 , 200), adds them zip-file stream (with compression), saves stream storage , returns location of file frontend.

the problem app times out before files has been added zip.

so, correct way set timeout on specific route in nancyfx?

you don't. should not running long running processes in http request. should off load request , poll result or give user link when it's ready.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -