【问题标题】:Hg clone: IIS server download limit汞克隆:IIS 服务器下载限制
【发布时间】:2017-03-15 23:55:45
【问题描述】:

我正在通过 http 协议从 IIS 8.5 服务器克隆一个大型 mercurial 存储库 (> 10Gb)。尽管将 maxAllowedContentLengthmaxRequestLength 设置为超过 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>

据我了解,将 maxAllowedContentLengthmaxRequestLength 调整为超过 2Gb 的值并没有帮助,因为这些设置适用于 ASP.NET,而不适用于 IIS。

【问题讨论】:

    标签: iis mercurial


    【解决方案1】:

    通过增量拉取,您可以逐个更改集获取整个存储库,从而将每次操作期间传输的数据量降至最低:

    https://www.google.com/search?q=hg+incremental+clone

    特别是看看这个其他问题 Is there any way to clone a repository from the web incrementally?

    或者可能有更多像 https://github.com/tusharvjoshi/incremental-hg 这样的最终用户解决方案(我不赞同,因为我根本不知道)

    【讨论】:

    • 不是一个选项。我们正在处理 400.000 个变更集。我们对 10.000 个变更集进行了一些增量拉取,但有时再次达到了极限。今天晚些时候,我将使用我们之前尝试过的内容来编辑我的问题。但简而言之,这是一个 IIS 问题,而不是 Mercurial 问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多