Solved

HTtP Request Timeout

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now