remove failed requests

droil

Newcomer
Joined
Mar 5, 2005
Messages
1
Hi,

I'm doing requests to a webserver with HttpWebRequest in a thread that starts every time a button is pressed. I want the request to be removed IMMEDATELY if it fails (if for example the network cable is unplugged or no connection to the Internet).

The problem is that old requests is queued and finishes when the cable is plugged in again.

I'm new to .NET and any help would be appreciated.

/David
 
Back
Top