Websocket 服务器在大约 600 个连接后停止接受 [英] Websocket server stops accepting after ~600 connections
问题描述
我正在 Windows 2008 服务器上的端口 9000 上运行 websocket 服务器(命令行程序).我似乎无法弄清楚为什么它不会接受超过 600 个并发连接.在我的本地机器上测试,我可以创建数千个并发连接.但是在服务器上,我在大约 600 之后收到以下错误:
I'm running a websocket server (command line program) off port 9000 on a Windows 2008 server. I can't seem to figure out why it will not accept more than about 600 concurrent connections. Testing on my local machine, I can create thousands of concurrent connections. But on the server, I get the following error after about 600:
No connection could be made because the target machine actively refused it
我尝试调整注册表项以获得最大端口号,但关闭防火墙无济于事.我还尝试了不同的 websocket 服务器实现.我需要更改其他设置吗?
I have tried adjusting registry entries for the max port number, and turning off the firewall to no avail. I have also tried a different websocket server implementation. Is there some other setting I need to change?
我也在 Linux 服务器上尝试过,但遇到了同样的问题.
edit: I tried this on a Linux server as well with the same problem.
推荐答案
我发现了问题:
这似乎是我的客户端互联网连接.通过在客户端的不同网络上运行相同的测试,我可以创建数千个连接.
It seems to be my client side internet connection. By running the same tests on a different network from the client side, I can create thousands of connections.
这篇关于Websocket 服务器在大约 600 个连接后停止接受的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!