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 votes
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 Sign up to answer
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

94 views 0 7
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