Multiple concurrent WCF calls from single client to Service -
i have service calls service on machine , number of concurrent connections can 2. have tried changing throttling on wcf service behaviour no effect. have read because of http limit of 2 concurrent connections client machine server. how overcome this? os on both machines server 2003.
config:
<servicebehaviors> <behavior name="myservicetypebehaviors"> <servicemetadata httpgetenabled="true" /> <servicethrottling maxconcurrentcalls="100" maxconcurrentinstances="100" maxconcurrentsessions="100"/> </behavior> </servicebehaviors> <system.net> <connectionmanagement> <add address="*" maxconnection="100" /> </connectionmanagement>
you have overcome client code (from service calls other service). use code in initialization of service application increase connections:
system.net.servicepointmanager.defaultconnectionlimit = 10;
Comments
Post a Comment