473,378 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Timeout property

Dear All

I am writing an application which fetches Web pages. I have been using the System.Net.HttpWebRequest.Timeout property to specify how long a request made with the GetResponse() method should wait for an answer. Nevertheless, my impression is that it does not work. No matter which value I set for the Timeout property, my requests may hang indefinitely when fetching certain Web pages

I have noticed that there is a new property called HttpWebRequest.ReadWriteTimeout. Would this new property be more appropriate to use in my case

Thank you
Marco
Nov 16 '05 #1
1 1615
Microsoft's documentation don't say much about this new property which is to be available from version 1.1 onwards, however Timeout property should be working properly unless you are using asynchronous I/O methods to access web pages or ignoring WebException
hope it should help you to figure out what's going on

Abh

----- Marco wrote: ----

Dear All

I am writing an application which fetches Web pages. I have been using the System.Net.HttpWebRequest.Timeout property to specify how long a request made with the GetResponse() method should wait for an answer. Nevertheless, my impression is that it does not work. No matter which value I set for the Timeout property, my requests may hang indefinitely when fetching certain Web pages

I have noticed that there is a new property called HttpWebRequest.ReadWriteTimeout. Would this new property be more appropriate to use in my case

Thank you
Marco
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MSR | last post by:
Hi, I have a query that takes 1 min 50 secs to execute in Query analyser (SQL Server 2000). When i execute this query from vb using ADO i get the 'Timeout Expired' error. I have tried setting...
2
by: Lars Netzel | last post by:
There's a setting in the IIS where I have set Enabled Session Timeout to 20 minutes Then there's a setting in the WebConfig file.. <sessionState mode="InProc"...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
4
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
5
by: Masso | last post by:
Hallo to the group, my question is this: where i have to set timeout in a web application? If i set into sessionState with property Timeout="60", after 20 minutes the session is over. Always...
1
by: Andrew Cooper | last post by:
I've got a report that is using an ObjectDataSource to populate its data. The problem is that the report takes longer than 30 seconds to generate so it times out. If I were using an SQLDataSource...
0
by: Andrew Cooper | last post by:
I posted this in the aspnet newsgroup but thought I might have more luck with an answer here. I'd really appreciate any help I can get. Thanks. I've got a report that is using an...
4
by: Simon | last post by:
I would like to know how to set the timeout for System.Web.Services.WebService class (from which my web service is derived)? According to documentation there should be Timeout property, but I can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.