HTTP 502 error when you connect to TFS 2013 by using Git clients on large "PUSH" requests


Symptoms


Consider the following scenario:
  • Microsoft Visual Studio Team Foundation Server 2013 Preview (TFS 2013) is running in Internet Information Services (IIS) 7.0 or IIS 7.5 on a computer, and the Microsoft IIS Application Request Routing (ARR) 2.5 feature is enabled in IIS.
  • You create a team project that uses Git as the source control engine in TFS 2013.
  • You connect to this Git remote repository on the TFS server by using a third-party Git client.
  • You try to execute a large request by using Git. For example, you clone many files.
In this scenario, you may receive an HTTP 502 error message from IIS that resembles the following:

error: RPC failed; result=22, HTTP code = 502
fatal: The remote end hung up unexpectedly
fatal: recursion detected in die handler

Cause


This issue occurs because of an issue in the ARR 2.5 feature.

Resolution


To resolve this issue, install the ARR 2.5 update .

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information


The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.