Solved

c# WebClient timeout

Posted on 2008-10-27
1
1,648 Views
Last Modified: 2013-12-17
Hello everyone,
           I am looking for a solution to a C# WebClient timeout issue.
           WebClient appears to have no way of timing out.
           Currently using Thread.Start to launch methods which call WebClient, using Thread.Join(MILLISECONDS) for a timeout.

          Using Thread.Start feels like overkill for my needs.
          (I am hitting 100's of devices using credentials and a simple HTTP request and simply need a way to timeout within 10 seconds)
Thanks :)
0
Comment
Question by:darkxer878
1 Comment
 
LVL 11

Accepted Solution

by:
jgordos earned 500 total points
Comment Utility
There is no way to timeout on a web request... your only real option is to kill the connection yourself after your timer goes off.. so yeah, Threads are your FRIEND...

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

9 Experts available now in Live!

Get 1:1 Help Now