C# webservice consumer app hitting MaxConnect=2 limit
- From: intrepid_dw@xxxxxxxxxxx
- Date: 6 Aug 2006 11:47:15 -0700
Hi, all
In debugging a C#-based .NET app that talks to a remote web service, I
was observing a particular behavior in which this app would generate
what I'd call a "burst" of calls to a web service. After these calls
fired, the application would block on any subsequent calls to the web
service.
After rummaging around, I finally came across the fact that the app was
hitting the wall imposed by the "maxConnects" parameter of
machine.config, and trying to open more than two simultaneous
connections to the same web endpoint. Changing this number for the sake
of test (in machine.config) (from 2 to 5) immediately resolved the
problem for the application, but I'm not sure I can make the assumption
I will be able to change that figure on machines using the app.
Are there programmatic workarounds to this, or settings in an
app-specific config file I can use that will overcome this limit? The
"burst" of calls is unusual, but correct within the context of the
application, so at the moment I'm awfully reluctant to try redesigning
that part of the program merely to overcome a single configuration
setting...
Any suggestions appreciated.
-intrepid
.
- Follow-Ups:
- Re: C# webservice consumer app hitting MaxConnect=2 limit
- From: Vadym Stetsyak
- Re: C# webservice consumer app hitting MaxConnect=2 limit
- Prev by Date: Re: Need MAC Address of LAN Devices, Access ARP Cache
- Next by Date: Re: Help!!! "Cannot access a disposed object." during this.Invoke
- Previous by thread: finally
- Next by thread: Re: C# webservice consumer app hitting MaxConnect=2 limit
- Index(es):
Relevant Pages
|