Adding timeout to http request (sync and async)

HttpWebRequest class has timeout option. You should be able to set timeout for specific request.