I am working on an application which has overlapped recycling enabled. The process initialization time can be non-trivial since we implement IProcessHostPreloadClient to perform some time consuming warmup before the worker process becomes available.
To my surprise, if a user goes into IIS Management Studio, and presses recycle repeatedly within the time it takes a recycle to complete (as users, or testers, are wont to do!), I can end up with 3, 4 or more worker processes running concurrently. I would have expected a maximum of two since I thought IIS would recognize that it was midway through a recycle and discard any 'duplicates'
So my question is: Is it possible to limit overlapped recycle to a single overlapped recycle, rather than multiple?