问题描述
大家好
我有使用GetRequestStream的问题。
HttpWebRequest myRequest =(HttpWebRequest)WebRequest.Create(url);
newStream = myRequest.GetRequestStream();
当URL在同一台机器上时没有问题;如果URL在另一台机器上(例如,应用程序位于192.168.79.134,网址是192.168.79.137),我总是会得到一个延迟(最多4秒)。我们进行了一些网络测试,以确定服务器之间是否存在网络问题,但似乎没有问题。此外,我们面临着内存和资源利用率的增加,正如该文章所述:
http://support.microsoft.com/kb/908573/en-us/
我们尝试了该文章建议的解决方案。我们还将reqest的Proxy属性设置为null(myRequest.Proxy = null;)但没有任何变化。
你有什么想法或建议吗?
真的非常感谢
> Stefano
Hi all
i have a problem with using GetRequestStream.
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url);
Stream newStream = myRequest.GetRequestStream();
when the URL is on the same machine there's no problem; if the URL is on another machine (for example the application is at 192.168.79.134 and the url is at 192.168.79.137) i always get a delay (up to 4 seconds). We made some net tests in order to find out if there's a network problem between servers but it seems there's no problem.
moreover, we faced an increasing of the memory and resource utilization, just as depicted in that article:
http://support.microsoft.com/kb/908573/en-us/
we tried with solutions suggested by that article. We also set the Proxy property of the reqest to null (myRequest.Proxy = null;) but nothing changes.
Have you got any idea or suggestion?
Really thanks
Stefano
推荐答案
这篇关于GetRequestStream延迟并增加内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!