[GH-ISSUE #2035] frpc客户端连接过多的时候,frps服务卡死,日志报错no available port #1615

Closed
opened 2026-05-05 13:01:57 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @hallkk on GitHub (Oct 21, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2035

What version of frp are you using (./frpc -v or ./frps -v)?
0.34.1

What operating system and processor architecture are you using (go env)?
amd64,centos7

Configures you used:

[common]
bind_port = 9999
vhost_http_port = 9998
dashboard_port = 10000
dashboard_user = xx
dashboard_pwd = xx
max_pool_count = 1

subdomain_host = xx.com
log_file = /var/log/frp/frps.log
allow_ports = 30000-50000

Steps to reproduce the issue:

  1. 启动frps服务
  2. 多个frpc连接frps,超过500

Describe the results you received:

  • web页面卡死,没有数据展示
  • frpc无法正常代理请求

Describe the results you expected:

  • web页面和frpc正常

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

  • 连接的frpc过多?
  • 从源文件看,在ports.go文件中,执行以下代码报错
	l, err := net.Listen(pm.netType, fmt.Sprintf("%s:%d", pm.bindAddr, port))
Originally created by @hallkk on GitHub (Oct 21, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2035 **What version of frp are you using (./frpc -v or ./frps -v)?** 0.34.1 **What operating system and processor architecture are you using (`go env`)?** amd64,centos7 **Configures you used:** ``` [common] bind_port = 9999 vhost_http_port = 9998 dashboard_port = 10000 dashboard_user = xx dashboard_pwd = xx max_pool_count = 1 subdomain_host = xx.com log_file = /var/log/frp/frps.log allow_ports = 30000-50000 ``` **Steps to reproduce the issue:** 1. 启动frps服务 2. 多个frpc连接frps,超过500 **Describe the results you received:** - web页面卡死,没有数据展示 - frpc无法正常代理请求 **Describe the results you expected:** - web页面和frpc正常 **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)** - 连接的frpc过多? - 从源文件看,在`ports.go`文件中,执行以下代码报错 ```go l, err := net.Listen(pm.netType, fmt.Sprintf("%s:%d", pm.bindAddr, port)) ```
Author
Owner

@hallkk commented on GitHub (Oct 24, 2020):

已解决,systemctl配置问题

<!-- gh-comment-id:715659596 --> @hallkk commented on GitHub (Oct 24, 2020): 已解决,systemctl配置问题
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1615
No description provided.