Hi,
i have a web server with my web site and i try stress it but i 'don't be able. I think that the problem is limitated number of concurrent connection in xp(Pro). I wrote a simple client in C# for stress:
...
for (int i = 0; i < _numThread; i++) {
Thread t = new Thread(CallGetHttp);
t.Start();
}
...
private void CallGetHttp()
{
WebRequest wrGETURL; wrGETURL = WebRequest.Create(_url);
WebProxy myProxy = new WebProxy("myproxy", 80); myProxy.BypassProxyOnLocal = true;
wrGETURL.Proxy = WebProxy.GetDefaultProxy();
Stream objStream; objStream = wrGETURL.GetResponse().GetResponseStream();
StreamReader objReader = new StreamReader(objStream);
.. }
it's proper? If yes, how i increase a number of concurrent connection?
Best Regard
Domenico