Does recycling the IIS7 application pool kill any currently executing requests?

房东的猫 提交于 2019-12-19 21:29:06

问题


Does recycling the IIS7 application pool kill any currently executing requests? Or does it wait for all requests to complete (like a drain-stop)?

I don't want the recycling rules to cause intermittent errors from my WCF sites.

Thanks


回答1:


No.

By default, the WWW service establishes an overlapped recycle, in which the worker process that is to be terminated is kept running until after a new worker process is started.

This is from the Documentation for IIS6 and I am sure it applies for IIS7.

If your web service requests are long-running, you might consider increasing the shutdown timeout.




回答2:


Yes. Recycling an application pool causes the WWW service to shut down all running worker processes that are serving the application pool, and then start new worker processes.

This is from the Documentation for IIS6 and I am sure it applies for IIS7



来源:https://stackoverflow.com/questions/5630420/does-recycling-the-iis7-application-pool-kill-any-currently-executing-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!