Solved

HTtP Request Timeout

Posted on 2011-09-12
5
340 Views
Last Modified: 2012-05-12
I need to understand the timieout below and what is actually happening.

In a class I have  
 Dim request As HttpWebRequest = DirectCast(WebRequest.Create(strUrl), HttpWebRequest)
blah...blah....blah...
request.Timeout = Convert.ToInt32(ConfigurationManager.AppSettings("DEV_CERTIFICATE_TIMEOUT"))

The appsetting number is 7200.

So...how long is that timeout?\
And does that apply to the request itself...and how would that be impacted by any IIS timeouts?
0
Comment
Question by:lrbrister
  • 3
5 Comments
 
LVL 1

Expert Comment

by:rerard
ID: 36524015
It is milliseconds, so 7200 ms = 7.2 seconds.

0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 36526261
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 36526264
Is the following your problem?


A Domain Name System (DNS) query may take up to 15 seconds to return or time out. If your request contains a host name that requires resolution and you set Timeout to a value less than 15 seconds, it may take 15 seconds or more before a WebException is thrown to indicate a timeout on your request.
0
 

Author Closing Comment

by:lrbrister
ID: 36529398
Thanks...best and most complete answer
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 36532054
Glad to help :-)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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