WCF Max Instances seems to be limited to 10

后端 未结 3 982
暖寄归人
暖寄归人 2020-12-30 06:27

I have a simple WCF service hosted in IIS7.5 exposed over a wsHttp binding using message security and InstanceContextMode.PerCall

I have a simple UI that spins up a

3条回答
  •  不思量自难忘°
    2020-12-30 06:36

    The MaxConcurrentSessions documentation mentions an optimization for client requests that come from the same AppDomain. Your sample code is basically hitting the same socket on the service. Since there is some throttling done per client, that may be affecting your service behavior. Also, 10 happens to be the default value for MaxConcurrentSessions so it may be that your config is not changing the WCF default value.

    Enabling security affects the total threads because it establishes a "session" per client so that each request sent does not need to be authenticated on every call. Those security "sessions" count toward the MaxConcurrentSessions total.

提交回复
热议问题