简体   繁体   English

使用websocket的最大连接数

[英]Maximum number of connections using websocket

As all of us might know, websocket maintains opened connection between server and client to achieve server push not like server pull where the connection wouldn't remains open. 众所周知,websocket在服务器和客户端之间保持打开的连接,以实现服务器推送,这与服务器拉动(连接不会保持打开状态)不同。 My question is how many number of TCP connections can be open at one time? 我的问题是一次可以打开多少个TCP连接? What is the limitation of server push compared to server pull in this regard? 在这方面,服务器推送与服务器推送相比有何限制?

Default maximum number of websocket connections allowed in FireFox is 200. Source: https://developer.mozilla.org/en/docs/WebSockets#Gecko_7.0 FireFox允许的默认Websocket连接最大数量为200。来源: https : //developer.mozilla.org/en/docs/WebSockets#Gecko_7.0

From the comment given in line #48 of http://src.chromium.org/viewvc/chrome/trunk/src/net/socket/client_socket_pool_manager.cc?r1=128044&r2=128043&pathrev=128044 seems to talk of dynamic numbers with minimum of 6 for normal socket pool and 30 for websocket pool. http://src.chromium.org/viewvc/chrome/trunk/src/net/socket/client_socket_pool_manager.cc?r1=128044&r2=128043&pathrev=128044的第48行给出的注释看来,动态数字的最小值对于普通套接字池为6,对于Websocket池为30。 More Info: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/4sHNK-Eotn0 更多信息: https : //groups.google.com/a/chromium.org/forum/#!topic/chromium- reviews/ 4sHNK-Eotn0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM