【问题标题】:How to solve web socket client connection numbers limit如何解决 Web 套接字客户端连接数限制
【发布时间】:2012-09-20 08:49:53
【问题描述】:

我开发了一个 websocket 服务,客户端关注http://blogs.microsoft.co.il/blogs/idof/archive/2012/03/06/what-s-new-in-wcf-4-5-websocket-support-part-2-of-2.aspx。 当我测试它时,我发现只有十个客户端可以连接到该服务。这是我的配置:

<customBinding>
<binding name="customConfig">
<byteStreamMessageEncoding />
     <httpTransport>
     <webSocketSettings transportUsage="Always" createNotificationOnConnection="true" maxPendingConnections="10000" />
          </httpTransport>
        </binding>
      </customBinding>

我知道对于像tcpbinding这样的双工通信,设置“maxConnections”属性可以提高可以连接服务器的客户端数量。但是对于自定义绑定,没有这样的属性。

我该如何解决?

我已经配置了行为:

<serviceBehaviors>
        <behavior name="serviceBehaive">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
          <serviceThrottling maxConcurrentCalls="100000" maxConcurrentSessions="100000"
            maxConcurrentInstances="100000" />
        </behavior>
      </serviceBehaviors>

谁能帮帮我?

【问题讨论】:

    标签: wcf websocket


    【解决方案1】:

    我就这个问题咨询了作者。他的回答是: 这是 iis 在桌面操作系统中的限制。在服务器操作系统上没有限制,iis express也是如此

    感谢他

    【讨论】:

      猜你喜欢
      • 2013-04-17
      • 2015-02-08
      • 1970-01-01
      • 2014-05-28
      • 1970-01-01
      • 2019-11-19
      • 2021-12-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多