ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.77k stars 5.38k forks source link

"window too large" and exit #1096

Open AinzLimuru opened 1 year ago

AinzLimuru commented 1 year ago

Describe the bug A clear and concise description of what the bug is. 频繁出现window too large,平均一秒最少一次 平均15分钟会退出一次,service可以看到(code=exited, status=2),然后被service重新启动,统计的流量数据也会丢失

To Reproduce Steps to reproduce the behavior:

  1. 使用转发bt客户端的做种流量,连接数在1000左右

Expected behavior 1.正常完成流量转发,bt做种的流量正常发送 2.不会异常退出

Server (please complete the following information):

Client (please complete the following information):

Additional context 最初怀疑是内存不足,后面开大了内存之后暂时解决了问题。但是后面开始出现内存没有占满的情况下依旧退出的问题。

AinzLimuru commented 1 year ago

window too large 一直出现,退出是发生在开启压缩之后。 现在已经关闭了压缩功能,后面如果继续出现退出的问题会继续反馈。

AinzLimuru commented 1 year ago

在连接数10000,5MB/s的速度下,nps支撑十分钟左右就会退出,此时内存仍有剩余