【发布时间】:2017-03-15 23:55:45
【问题描述】:
我正在通过 http 协议从 IIS 8.5 服务器克隆一个大型 mercurial 存储库 (> 10Gb)。尽管将 maxAllowedContentLength 和 maxRequestLength 设置为超过 2Gb 的值,但我仍然无法克隆存储库。看来我正在达到下载限制大小。抛出以下异常:
bundle2-input-part:总有效载荷大小 64680856
bundle2-input-bundle:共 0 部分
交易中止!
回滚完成
中止:流意外结束(获得 0 字节,预期为 4)
我的 web.config 文件:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295" />
</requestFiltering>
</security>
<system.webServer>
<system.web>
<sessionState timeout="240" />
<httpRuntime executionTimeout="14400" maxRequestLength="2147483647" />
</system.web>
据我了解,将 maxAllowedContentLength 或 maxRequestLength 调整为超过 2Gb 的值并没有帮助,因为这些设置适用于 ASP.NET,而不适用于 IIS。
【问题讨论】: