Reputation: 21
IIS Version :7.5, Idle time-out for the ApplicationPool: 20 minutes.
step: 1. User visits a page. 2. when the server receives the request, a new thread is created by the code to process an complex operation. And at the same time, the response is sent to the user saying that the request is processed in the background.
After 20 minute(no visit to the site), the worker process is shut down. The complex operation has not been finished.
How to make the iis know that the worker process is not idle if a thead is running?
Upvotes: 2
Views: 988
Reputation: 1255
I have the same problem at this tame, currently found the best solution just create new request from IIS worker thread to IIS itself to avoid background thread shutdown.
Upvotes: 1