本帖最后由 J_star 于 2013-05-06 12:54:49 编辑

解决方案 »

  1.   

    试试HttpWebRequest的Timeout
    设小点
      

  2.   

    添加   ServicePointManager.DefaultConnectionLimit = 120;
      

  3.   

    4楼的方法似乎有缓解效果。
    主要是点了check后,就会卡住整个程序,虽然只是一会,囧。
      

  4.   


    今天看到了关于这个的处理方法,回个帖
    别人不改参数,用异步方法调用才是王道……
    AsyncManager.OutstandingOperations.Increment();
    WebRequest req = WebRequest.Create("http://www.asp.net");
    req.BeginGetResponse((IAsyncResult ias) => {
    WebResponse resp = req.EndGetResponse(ias);
    string content = new StreamReader(resp.GetResponseStream()).ReadToEnd();
    AsyncManager.Parameters["html"] = content;
    AsyncManager.OutstandingOperations.Decrement();
    }, null);