User-892055527 posted
Hello
I was wondering if it was possible on IIS6 to set the maximum execution time of a thread.
Let's say the thread is running for long enough that the initial request has timed out.
Can I configure IIS such that if a thread runs for >X minutes, to kill it and return it to the pool so I can minimize the diminishing resources on the system?
I'm working on a new system with alot of .net code (many wcf services). Despite trying to do extensive testing, there are alot of new components, and I'd like to be able to constrain the impact of any given error on the rest of the system so that if some
kind of loop or hang occurs it doesn't poison the thread pool by hanging onto resources, since the response cannot be made anyway.
I'd rather kill the thread rather than the whole app pool because building up the cache is a moreless expensive process that I'd have to do again if the pool was recycled.
Thanks for any input.
-TC