[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

HTtP Request Timeout

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
lrbrister
Asked:
lrbrister
  • 3
1 Solution
 
rerardCommented:
It is milliseconds, so 7200 ms = 7.2 seconds.

0
 
CodeCruiserCommented:
0
 
CodeCruiserCommented:
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
 
lrbristerAuthor Commented:
Thanks...best and most complete answer
0
 
CodeCruiserCommented:
Glad to help :-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now