WCF Service Throttling

前端 未结 2 712
Happy的楠姐
Happy的楠姐 2020-12-01 05:34

I have a WCF service deployed in a console app with BasicHTTPBinding and SSL enabled. The following attribute is set as well:

[AspNetCompatibilityRequiremen         


        
相关标签:
2条回答
  • 2020-12-01 06:15

    Or use this configuration in the client.

    <system.net>
        <connectionManagement>
          <add maxconnection = "200" address ="*" />
        </connectionManagement>
      </system.net>
    

    Here 200 is the limit from the client

    0 讨论(0)
  • 2020-12-01 06:30

    I found a solution: there is a connection limit on ServicePointManager that was causing this problem. To remove this limit you just need to set

    System.Net.ServicePointManager.DefaultConnectionLimit = X;
    

    where the default limit is 2.

    0 讨论(0)
提交回复
热议问题