Because my test app could run for a week. How many open sockets might I have, then?
In actual testing, over time performance would degrade and the program would frequently crash. I never traced the cause, but the number of sockets was a prime suspect. ----- Original Message ----- From: "Ben Kloosterman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 02, 2002 9:38 PM Subject: Re: [ADVANCED-DOTNET] Can you disable or bypass connection groups? > The sockets should be closed when you close the test app - why is it an > issue having 100 open sockets ? If you have to you could call Dispose. > > Ben > > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Vatsaas > Sent: Tuesday, 2 July 2002 10:01 PM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Can you disable or bypass connection groups? > > > I tried this in the web forum to no avail, so I'll try here. > > I'm trying to write a test application to test my web services. The > logical method is to add a web reference to get the proxy generated, and > then create and call the proxy. This part is trivial. > > By default, .NET uses Connection Groups for the socket connections used by > the proxy to talk to the server. As an example, assume that my test > application will make 100 web service method calls one at a time (no > multiple calls in parallel). These calls will all use the same socket. > Under most conditions, this would be a sensible thing to do. However, it > doesn't necessarily mirror real life in that my clients will likely not be > issuing 100 transactions on the same socket. This is true whether I use > the same proxy object instance for all 100 calls, or a new instance for > each call. > > So, I started looking at how to tell .NET to use a new socket on each > request. If I set the ConnectionGroupName property to a unique value with > every call, then a new socket gets opened for each call. However, the > sockets don't get closed and I end up with 100 open sockets by the end of > my test. This isn't what I want, either. > > How do I force .NET to give me the behavior I want? > > You can read messages from the Advanced DOTNET archive, unsubscribe from > Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
