Error : an existing connection was foribly by the remote host

Geoffroy's Avatar


28 May, 2016 03:21 AM

I'm currently trying to push a big repo to new installation of HgLab with IIS7. After few minutes I'm getting this error : Error : an existing connection was foribly by the remote host. It seems there was few post reporting similar error for big file pushing. It was in 2012 and 2013. is python issues are still present? I have enable win 32 application. I do not have issue to push small repo. I have run the push command with debug and it is stopping with the error after 14.85% of sending the repo. (repo is about 6 Gig) Do you have any suggestion how I can fix that?

  1. 1 Posted by Geoffroy on 29 May, 2016 05:13 AM

    Geoffroy's Avatar

    I have continued working to get it work. Following post on similar subject I have changed web.config file with this data

    <requestFiltering allowDoubleEscaping="true">
    <requestLimits maxQueryString="8192" maxAllowedContentLength="536870912" />

    When I use that in my web.config file my IIS is working great but hgLab stop working. If I remove complete httpRuntime section now IIS and HgLab are working. But the issue to push my code is still there.

  2. Support Staff 2 Posted by Anton Gogolev on 30 May, 2016 09:04 AM

    Anton Gogolev's Avatar

    Hi, Geoffroy!

    This is IIS kicking in here. What Mercurial does is it creates a huge file
    with all the changesets and tries to send it over to the remote server. IIS
    cannot be configured to accept files larger than 4 Gb.

    What you can try is to push your repository bit-by-bit, as described here:

  3. 3 Posted by Geoffroy on 31 May, 2016 03:49 AM

    Geoffroy's Avatar

    The idea to push small group of revision is interesting. I have started to try that with some success. It was working for around 25 revisions. At one moment I was pushing a single revision but I get this error HTTP Error 404 : Not found. I'm progressing but still improvement to do

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM


18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM