问题描述
如果我将空闲超时设置为 0,它会被禁用吗?
Will it be disabled if I set the idle time-out to 0?
推荐答案
是的,将空闲超时值设置为零将禁用空闲超时.
Yes, setting the idle timeout value to zero will disable idle timeouts.
奇怪的是,MS 文档中没有记录,但我对此的证据来自:
Oddly this isn't documented in the MS docs but my evidence for this arises from:
IIS 设置架构
IIS Settings Schema
如果您查看 IIS 设置架构:
If you have a look at the IIS settings schema in:
C:WindowsSystem32inetsrvconfigschemaIIS_schema.xml
<sectionSchema name="system.applicationHost/applicationPools">
看起来像:
<attribute name="idleTimeout"
type="timeSpan"
defaultValue="00:20:00"
validationType="timeSpanRange"
validationParameter="0,2592000,60"/>
如果您查看 validationParameter
属性,我们会看到 0 到 2592000 秒的范围(,60
指定设置的粒度,在这种情况下,该值必须可被 60 整除 [一分钟]).
If you look at the validationParameter
attribute we see a range of 0 to 2592000 seconds (the ,60
specifies the granularity of the setting, in this case the value must be divisable by 60 [one minute]).
如果您看到 0
的起始允许值,则通常表明该设置可以被禁用.
If you see a starting permissible value of 0
then that usually indicates the setting can be disabled.
IIS7 应用程序池空闲超时设置
Brad Kingsley 是 OrcsWeb 的创始人兼首席执行官,他是相当知名、受人尊敬和值得信赖的 Microsoft 托管商和金牌合作伙伴.
Brad Kingsley is the founder and CEO of OrcsWeb who are a fairly well known, respected and trusted Microsoft hoster and Gold Partner.
还有经验证据表明它有效".
Then there's also the empirical evidence of the fact that it "just works".
这篇关于如何在 IIS7 中禁用应用程序池空闲超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!