Solved

HTtP Request Timeout

Posted on 2011-09-12
5
346 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

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

861 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