I
intrepid_dw
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
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