我开发了一个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。当我测试它时,我发现只有10个客户端可以连接到该服务。下面是我的配置:
<customBinding>
<binding name="customConfig">
<byteStreamMessageEncoding />
<httpTransport>
<webSocketSettings transportUsage="Always" createNotificationOnConnection="true" maxPendingConnections="10000" />
</httpTransport>
</binding>
</customBinding>我知道对于像tcpbinding这样的双工通信,设置"maxConnections“属性可以增加可以连接server.But进行自定义绑定的客户端数量,但没有这样的属性。
我怎样才能解决这个问题呢?
我已经配置了行为:
<serviceBehaviors>
<behavior name="serviceBehaive">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
<serviceThrottling maxConcurrentCalls="100000" maxConcurrentSessions="100000"
maxConcurrentInstances="100000" />
</behavior>
</serviceBehaviors>有谁能帮帮我呢?
发布于 2012-09-21 08:39:28
我咨询的作者对此question.His的回答是:这是桌面操作系统中iis的一个限制。在服务器os上没有限制,iis express也是如此。
谢谢他
https://stackoverflow.com/questions/12509141
复制相似问题