【发布时间】: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>
谁能帮帮我?
【问题讨论】: