request.GetResponse()超时的解决办法

var request = (HttpWebRequest)WebRequest.Create(url);

request.Timeout = Timeout.Infinite;
request.KeepAlive = true;
var response = (HttpWebResponse)request.GetResponse();

 

posted @ 2017-11-15 17:44  iDEAAM  阅读(2704)  评论(0编辑  收藏  举报