POST of large file is timing out, when running through ARR

When POST'ing a large file through ARR, the request times out after 120 seconds. The client recieves error code 502 Bad Gateway. I have configured the "proxy timeout" of the web farm to be 600 seconds. I have also configured the Connection time-out of Default Web Site to be 600 seconds. The ARR server has been restarted.

The following is from the log file on the ARR server:

2015-05-07 13:25:16 192.168.87.155 POST /Redacted/Import/RedactedImport20150507_152313.csv X-ARR-CACHE-HIT=0&X-ARR-LOG-ID=253daa4a-8372-405a-8efd-21ebbc38353f 80 - 192.168.87.198 - redacted.local 502 3 64 120436

from applicationHost.config:

    <webFarm name="redacted.local" enabled="true">
        <server address="redacted.local" enabled="true" />
        <applicationRequestRouting>
            <healthCheck url="http://redacted.local/redacted.svc" liveTrafficFailureCodes="400-" />
            <protocol timeout="00:10:00" />
        </applicationRequestRouting>
    </webFarm>

Background:

I'm building a PoC for using ARR to achieve load balancing and high availability for our backend services, which are mostly WCF (Basic HTTP) and REST.

One of the (REST) services is used to recieve a large(ish) file a couple of times each day, from a batch job. The REST service does not return until the processing of the file is complete (which could take 5 minutes), since the client application needs to know when the processing is complete (more steps follows, which are dependent on the first).


In my case I resolved the problem by changing the proxy time-out

  1. Go to IIS manager
  2. Application requests routing
  3. Under "actions" go to server proxy settings
  4. Change the time-out to your desired value.

These steps are for IIS v7