Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

c# WebClient timeout

Posted on 2008-10-27
1
Medium Priority
?
1,778 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
jgordos earned 1000 total points
ID: 22818995
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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

660 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