2
我開發了一個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」屬性可以提高誰可以連接server.But爲custombinding客戶端的數量,有沒有這樣的屬性。
我該怎麼辦才能解決它?
我已經配置了behaive:
<serviceBehaviors>
<behavior name="serviceBehaive">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
<serviceThrottling maxConcurrentCalls="100000" maxConcurrentSessions="100000"
maxConcurrentInstances="100000" />
</behavior>
</serviceBehaviors>
誰能幫我?