http-status-code-504

Avoiding 504 on remote server .NET

I am using HttpWebRequest to download a remote file, however i get a 504 error. I pasted the url in firefox and the first and 3rd try it took 16seconds, the 2nd nothing happened (it looked like it timed out). How do i decrease the 504 error? Would changing HttpWebRequest timeout help? should i attempt to retry the file (lets say 3 times...

Making a web interface to a script that takes 30 minutes to execute

I wrote a python script to process some data from CSV files. The script takes between 3 to 30 minutes to complete, depending on the size of the CSV. Now I want to put in a web interface to this, so I can upload the CSV data files from anywhere. I wrote a basic HTTP POST upload page and used Python's CGI module - but the script just time...

WCF - (504) The server did not return a response for this request.

I have a JSONP WCF Endpoint and am trying to track down why I am getting a 504 error. HTTP/1.1 504 Fiddler - Receive Failure Content-Type: text/html Connection: close Timestamp: 11:45:45:9580 ReadResponse() failed: The server did not return a response for this request. I can set a breakpoint anywhere inside of my Endpoint, ...