Git push via HTTP to Stash behind IIS Proxy Time-out

I'm having trouble pushing an existing repository to Stash via HTTP through an IIS 7 Proxy.

The suggestions I've found on the interwebs including increasing the allowable post size on IIS and Tomcat, (done) configuring the server to allow chunked HTTP posts, (can't figure out how despite instructions) and increasing the git buffer size so it doesn't use HTTP chunking. (doesn't help)

The Tomcat side shows an error indicating that it didn't receive the entire post, and the client side shows "The remote end hung up unexpectedly", so it seems to me like the IIS proxy is to blame here, and in fact, when using GIT via SSH, it works fine, but that's not practical in our environment due to the network configuration.

It seems like there's some hard limit on the post size being enforced, but I can't determine why that is, or how to enable IIS and the tomcat connector to work with chunking.

3 answers

0 vote
Bryan Turner Atlassian Team Oct 17, 2012


I'm one of the Atlassian Stash developers, and I'd like to try and help with this issue. To facilitate that, could you please open a ticket at We can exchange a bit more information about what you've tried so far and about your environment and then I'll build a similar setup here to reproduce the issue and investigate possible fixes.

Once we've resolved the issue, I'll post the solution we come up with as another answer to this question so the community can benefit from it.

Best regards,
Bryan Turner
Atlassian Stash

Done. Please look up issue SSP-316.

As part of the investigation taking place on Atlassian's side, it was discovered that this is overall a Mac->Windows HTTPS issue with large posts.

This problem does not manifest with HTTP, and has been identified by others as happening even with just a large post over HTTPS to a windows server.

Looks like the answer is "There's a problem with large posts over HTTPS using IIS when the client is a Mac".

Hi Charles,

how did you manage to proxy Stash trough IIS?

My Problem is that i am able to open the webinterface but can't do any git operation through IIS.

Kind regards

Pascal Empl

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

250 views 5 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot