title: Django on IIS: Debugging IIS Error due to FastCGI request timeout on large file upload
body: <p>I'm trying to host a Django web application on a windows 10 machine with IIS 10 with FastCGI. 
  Whilst everything is running good so far, I'm running into problems with certain POST-requests while uploading larger files (~120MB), namely an HTTP 500 Error. I'm at a point where I don't know how to debug any further.</p>
  
  <p>I resolved the Error "413.1 - Request Entity Too Large" by increasing the request limits. However, now I get an HTTP-error stating the following:</p>
  
  <pre><code>C:\Apps\Python3\python.exe - The FastCGI process exceeded configured request timeout
  </code></pre>
  
  <p>The timeout is set to 90 seconds, and I can tell that after the uploading of files completes, my browser is waiting about that time for a response from the server.</p>
  
  <p>There are not that much operations to perform within the Django-view for responding to the request. If I run the django developement server on the same machine, the response is beeing send justs seconds after the files were uploaded. The duration, the IIS takes to send the HTTP 500 response, takes more than 1 minute longer.</p>
  
  <p>I added some code to the Django-view in the post()-method to write something to a file whenever the method is called:</p>
  
  <pre><code>def post(self, request, *args, **kwargs):
      with open(os.path.join(settings.REPORT_DIR, "view_output.txt"), "w") as f:
          f.write("tbd.")
  (...)
  </code></pre>
  
  <p>However, this action is never performed, although it works in other Django-Views. I therefore assume a problem with IIS processing the request.</p>
  
  <p>I enabled FREB logging, but am a little lost with interpretation. The "Errors &amp; Warnings" just state the LOG_FILE_MAX_SIZE_TRUNCATE event, probably due to the large request.</p>
  
  <p>Since I'm new to IIS, how can I debug any further?</p>
  
  <p>Thank you very much!</p>