I'm trying to run some tests against SignalR so we can use it in our product but first it needs to pass a small load test that ive been set.
What iv done is wrote a small app that basically creates x number of WPF browser controls and points them at my machine.. This works fine which all the JavaScript and everything working..
my problem is that only 2 of the x browser connect to Signal R, ive had a look and apparently its something to do with concurrent connections so I tried setting
<system.net>
<connectionManagement>
<add address="*" maxconnection="100" />
</connectionManagement>
but that did not work, I also tried
ServicePointManager.DefaultConnectionLimit = 200;
that also didnt solve it..
Im pulling my hair out here trying to get it to work! any ideas? I cant exactly do a load test with only 2 connection clients hehe!
some code;
private void Create(object o)
{
for (int i = 0; i < this.Users; i++)
{
StressResult result = new StressResult { BrowserInstance = new WebBrowser(), Id = i };
this.Results.Add(result);
}
}
private void StartRun(object obj)
{
foreach (StressResult result in this.Results)
{
result.BrowserInstance.Navigate(this.Target);
}
}
Create is run first so that the browsers can load, then we finally do the navigation.