title: Handling network disconnect
body: <p>I am trying to do "long polling" with an HttpWebRequest object.</p>
  
  <p>In my C# app, I am making an HTTP GET request, using HttpWebRequest. And then afterwards, I wait for the response with beginGetResponse(). I am using ThreadPool.RegisterWaitForSingleObject to wait for the response, or to timeout (after 1 minute).</p>
  
  <p>I have set the target web server to take a long time to respond. So that, I have time to disconnect the network cable.</p>
  
  <p>After sending the request, I pull the network cable.</p>
  
  <p>Is there a way to get an exception when this happens? So I don't have to wait for the timeout?</p>
  
  <p>Instead of an exception, the timeout (from RegisterWaitForSingleObject) happens after the 1 minute timeout has expired.</p>
  
  <p>Is there a way to determine that the network connection went down? Currently, this situation is indistinguishable from the case where the web server takes more than 1 minute to respond.</p>