?
Solved

HTTP PUT large files times out after 100 seconds

Posted on 2008-02-06
6
Medium Priority
?
930 Views
Last Modified: 2008-02-14
Hi - An application I wrote uploads files to an IIS 6 server via HTTPS and PUT.  This works great when the files are small, but when they are over a few MBs the transfers always fail with a "timeout" error.

Some research has revealed the "AspMaxRequestEntityAllowed" parameter in the IIS metabase file.  Setting this up does not have any effect.  I suspect either because it's a pure HTTP PUT command (and not a POST) or because it is a PUT and not and ASP request.

The weird thing about it is that the timeout always seems to happen at exactly 100 seconds.  I can't find a timeout anywhere that's set at 100 seconds.  Any ideas anybody?


0
Comment
Question by:CoderNotIT
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 20840377
Firstly "AspMaxRequestEntityAllowed" won't be doing anything because it relates to the maximum size of file that can be uploaded, not the time it takes to do it.

You will probably need to extend the ScriptTimeout value (the default is 90 seconds) for the page doing the upload, which you can do like:


<% Server.ScriptTimeout = 180 %>

Open in new window

0
 

Author Comment

by:CoderNotIT
ID: 20851005
Carl,

Thanks for responding.  Where would this snippet go?  There's not actually any page.  This is a pure HTTP PUT initiated programmatically.

0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 20851113
Initiaited programmatically how? using xmlhttp or something similar ?
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 

Author Comment

by:CoderNotIT
ID: 20851239
In a Windows service written in C#.  Something like this:

System.Net.WebClient wc = new System.Net.WebClient();
wc.UploadFile(uriString, "PUT", theFile);

Open in new window

0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 20851300
Take a look at the solution in this question: http://www.experts-exchange.com/Programming/Languages/.NET/Q_20931618.html

It uses the HttpWebRequest object, which gives you a bit more control than the more simplistic WebClient object.
0
 

Author Comment

by:CoderNotIT
ID: 20851433
Wow, that looks like it could be the answer.  Thanks very much for pointing me to it.  Don't know how I didn't find that.  I won't be able to test it out until next week, but will probably accept your solution then.  Thanks again.
0

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question