Websockets和RX

时间:2011-05-01 19:45:26

标签: concurrency websocket system.reactive

prototype for WCF Websocket限制并发连接数。即便如此,我还想与多个客户进行比较。可能Rx可用于处理订阅。你会怎么做?

1 个答案:

答案 0 :(得分:1)

我认为WCF允许您更改最大连接数:http://msdn.microsoft.com/en-us/library/system.servicemodel.nettcpbinding.maxconnections.aspx

如果您正在使用NetTcpBinding,那么您只需设置最大连接数:

int maxNumConnections = 100; 

// Set the maximum number of connections for your tcp binding
binding.MaxConnections = maxNumConnections;