R
Raghu Rudra
By default, the machine.config contains following information:
<system.net>
.......
<connectionManagement>
<add address="*" maxconnection="2"/>
</connectionManagement>
</system.net>
This limits the number of connections to web server to 2. For example, if
you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous threads
are done.
Tthe msdn documentation says that if you want increase this number for any
http server, you need to modify this configuration in either machine.config
or app confic or policy config file as below:
<system.net>
.......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net>
I have a web application that is deployed on internal web server. So I
modified it as following:
<system.net>
.......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net>
This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.
But when I modified as below, it worked:
<system.net>
.......
<connectionManagement>
<add address="*" maxconnection="15"/>
</connectionManagement>
</system.net>
But I do not want to apply this for every server. So can someone tell what
am I doing wrong?
Thanks.
Raghu/..
<system.net>
.......
<connectionManagement>
<add address="*" maxconnection="2"/>
</connectionManagement>
</system.net>
This limits the number of connections to web server to 2. For example, if
you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous threads
are done.
Tthe msdn documentation says that if you want increase this number for any
http server, you need to modify this configuration in either machine.config
or app confic or policy config file as below:
<system.net>
.......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net>
I have a web application that is deployed on internal web server. So I
modified it as following:
<system.net>
.......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net>
This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.
But when I modified as below, it worked:
<system.net>
.......
<connectionManagement>
<add address="*" maxconnection="15"/>
</connectionManagement>
</system.net>
But I do not want to apply this for every server. So can someone tell what
am I doing wrong?
Thanks.
Raghu/..