Billyzou0741326 / bilibili-live-monitor-js

弃用 b站限制单ip连接数
MIT License
20 stars 5 forks source link

[ 修正 0 ]: 重现request #62

Closed ghost closed 4 years ago

ghost commented 4 years ago

使用node .\src\main.js运行几十秒中后疯狂出现,无奈只好关掉了程序。请问下大佬这个是什么问题?尝试关闭windows防火墙并没有作用,IP可以ping通。

C:\Users\TheWanderingCoel\Documents\bilibili-live-monitor-js>node .\src\main.js
 [2019-12-24 20:46:28]   bilibili-monitor[1.0.0] successfully launched
 [2019-12-24 20:46:28]   Http server listening on 0.0.0.0:9001
 [2019-12-24 20:46:28]   WS server listening on 0.0.0.0:8999
 [2019-12-24 20:46:28]   Setting up monitor @room 7654470      in 电台区
 [2019-12-24 20:46:28]   Setting up monitor @room 763679       in 手游区
 [2019-12-24 20:46:28]   Setting up monitor @room 12235923     in 娱乐区
 [2019-12-24 20:46:29]   Setting up monitor @room 15426        in 绘画区
 [2019-12-24 20:46:29]   Setting up monitor @room 910819       in 单机区
 [2019-12-24 20:46:29]   Setting up monitor @room 5096         in 网游区
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
 [2019-12-24 20:46:50]   Error: connect ETIMEDOUT 120.92.141.155:80
 [2019-12-24 20:46:50]   [ 修正 0 ]: 重现request
Pearlulu commented 4 years ago

你的网络是独立IP还是内网IP?如果是电信的内网IP的话,就可能和我一样,宽带的TCP连接数被限制了,我这儿最大是2000,超过2000就再也上不去了。用服务器跑试试吧。

ghost commented 4 years ago

我问电信要了公网IP,也是这样。在macOS上试了下还能监听几个,在windows上直接就一直在刷屏。我在想会不会跟系统也有关系。我先去试下服务器跑吧,谢谢大佬了

Billyzou0741326 commented 4 years ago

hhh多谢大佬 这个问题我是没有头绪的233

lovezm commented 4 years ago

@TheWanderingCoel 你用的什么路由器 是否可以看连接数 如果不能的话 另开个cmd窗口 重复执行netstat -ant|find /C /I "TCP" 查看连接数大概多少的时候会超时 这个问题我解决了
换了路由器的固件 hhhh 还有你可以不要连路由器 直接连光猫试试。

lovezm commented 4 years ago

之前最多4000左右就会超时 image

ghost commented 4 years ago

我的是华为的路由器,应该看不了,我试试开命令行看下连接数。

ghost commented 4 years ago
C:\Windows\system32>netstat -ant|find /C /I "TCP"
210

连续并没有看到连接数的增长,反而在错误过后接收到房间。

[2019-12-25 17:37:21]   [ 修正 0 ]: 重现request
 [2019-12-25 17:37:21]   Error: connect ETIMEDOUT 58.222.35.205:80
 [2019-12-25 17:37:21]   [ 修正 0 ]: 重现request
 [2019-12-25 17:37:21]   Error: connect ETIMEDOUT 58.222.35.205:80
 [2019-12-25 17:37:21]   [ 修正 0 ]: 重现request
 [2019-12-25 17:37:21]   Error: connect ETIMEDOUT 58.222.35.205:80
 [2019-12-25 17:37:21]   [ 修正 0 ]: 重现request
 [2019-12-25 17:37:21]   Error: connect ETIMEDOUT 58.222.35.205:80
 [2019-12-25 17:37:21]   [ 修正 0 ]: 重现request
 [2019-12-25 17:37:30]   Received 5181 dynamic rooms
 [2019-12-25 17:37:31]   1794977      @765293       guard        提督
 [2019-12-25 17:37:40]   1794984      @1602540      guard        舰长
 [2019-12-25 17:38:30]   1794985      @21536060     guard        舰长
 [2019-12-25 17:38:30]   1794975      @21536060     guard        舰长
lovezm commented 4 years ago

那不应该啊 这个问题基本就是连接数限制了 应该会涨到固定的 才会超时

lovezm commented 4 years ago

啥运营商

lovezm commented 4 years ago

另外路由器会有连接数限制 你看看能不能改 运营商电信我昨天问过他们说没有限制

ghost commented 4 years ago

我是电信的,路由器是华为荣耀,没有可以设置的地方。很奇怪的就是报错的时候TCP连接一直没有增长,等到错误完收到Received xxxx dynamic rooms才开始增长,会不会和连接数有没有关系?

lovezm commented 4 years ago

我之前就是你这个情况 或许你可以试试直连光猫

ghost commented 4 years ago

我之前就是你这个情况 或许你可以试试直连光猫

好的,我试一下,谢谢大佬。

Billyzou0741326 commented 4 years ago

诶 这个解决了吗 这么快就关了2333

lovezm commented 4 years ago

点错了=。=

Billyzou0741326 commented 4 years ago

嗯... 最近得出的结论是只有Linux才带得动过万的连接 解决方法找不到2333