Kevin Li

突破.net极限

导航

2005年12月10日

摘要: 最近使用多线程同时调用一个Web Service,总是有很多调用报超时,代码类似于下面的代码(为了简化,我把调用Web Service改为使用HttpWebRequest访问一个网址,效果时一样的): 我循环调用100次,但是总是有几十次调用报超时,具体如下: System.Net.WebException: 操作已超时。 at System.Net.HttpWebRequest.GetResponse() at HttpRequestTest.HttpRequestTest.MakeWebRequest(Object obj) in g:\my documents\visual studio projects\httprequesttest\httprequesttest.cs:line 35 真的不知道为什么,难道Web Service就不能在多线程的环境下调用! 因为目前找不到原因,暂时放在首页,想向各位请教,明天就撤调,请手下留情,谢谢! 阅读全文

posted @ 2005-12-10 21:25 Kevin Li 阅读(9462) 评论(14) 推荐(0) 编辑