Click to See Complete Forum and Search --> : WCF serviceBehavior 'maxConcurrentSessions'


dannystommen
January 6th, 2009, 07:11 AM
I am using a WCF where a client 'subscribes' to the service host. If a client makes a change, all subscrided clients are notified. Thus when a client opens the connection, this connection will be open untill he closes the app.

In the app.config at servicebehaviors I have the next:

<behavior name="MyBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl=".." />
<serviceThrottling maxConcurrentCalls="10" maxConcurrentSessions="10" maxConcurrentInstances="10" />
</behavior>


With this configuration, the 11th client that tries to connect to the service, will not succeed.
So I need to increase this limit. What is a reasonable number to enter here? Max value is 2147483647 (int.MaxValue).

Or is this the same as increasing the limits of maxBytesPerRead (and other attributes) like discussed here (http://www.codeguru.com/forum/showthread.php?t=464674)