Question

I have an ASP.NET/C# 2.0 website running in IIS 7. A bug in one of the App_Code files caused the code to go into an infinite loop when trying to access a particular page.

When the offending code in App_Code is fixed, the website of course recompiles, preventing further requests from going into an infinite loop. But what happens to the threads that are stuck in the infinite loop and are still running when the code is changed? Are they automatically killed in order to recompile the site? If not, will they timeout at some point, or will they keep running until the website is stopped/restarted from IIS?

Was it helpful?

Solution

When an activity triggers an application pool recycle, it will leave the old process alive long enough for any pending requests to complete, within a timeout period. If the pending requests haven't finished up in that time, it will forcibly terminate them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top