[GH-ISSUE #2474] FRPS can't accept new connections after a short period of running. #1963

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

Originally created by @thesocialproxy on GitHub (Jul 8, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2474

Version: FRPS 0.37.0
OS: Ubuntu 20.04.2 LTS
CPU architecture: Intel

[REQUIRED] description of errors
I am using FRPS and FRPC-Android to connect to it, then I am connecting to FRPS as a proxy user, everything is working perfectly, but after the connection is running for a few minutes, any request that will be sent to FRPS will trigger a timeout error, it seems like FRPS stopped listening for incoming requests.

I know FRPC-Android is probably not supported by this project, but it seems like an FRPS issue since FRPS is not even receiving the proxy user connection request as far as I can tell (you can see there is nothing in the logs regarding an incoming connection).

I also tried searching the archives but have found no similar issue before.

confile

[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = test123
enable_prometheus = true
log_file = ./frps.log
log_level = debug
log_max_days = 3
disable_log_color = false
detailed_errors_to_client = true
authentication_method = token
authenticate_heartbeats = false
authenticate_new_work_conns = false
token = xxxxxxxx
oidc_issuer =
oidc_audience =
oidc_skip_expiry_check = false
oidc_skip_issuer_check = false
allow_ports = 2000-3000,3001,3003,4000-50000
max_pool_count = 5
max_ports_per_client = 0
tls_only = false
subdomain_host = frps.com
tcp_mux = true
udp_packet_size = 1500

log file

2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717]
2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:32918])
2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered
2021/07/08 17:12:59 [I] [proxy.go:162] [7220701f73fc656a] [android_fdc] get a user connection [xx.xx.xx.xx:45400]
2021/07/08 17:12:59 [D] [control.go:248] [7220701f73fc656a] get work connection from pool
2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717]
2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:45400])
2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered
2021/07/08 17:12:59 [I] [proxy.go:162] [7220701f73fc656a] [android_fdc] get a user connection [xx.xx.xx.xx:33756]
2021/07/08 17:12:59 [D] [control.go:248] [7220701f73fc656a] get work connection from pool
2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717]
2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:33756])
2021/07/08 17:12:59 [I] [proxy.go:162] [7220701f73fc656a] [android_fdc] get a user connection [xx.xx.xx.xx:56658]
2021/07/08 17:12:59 [D] [control.go:248] [7220701f73fc656a] get work connection from pool
2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717]
2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:56658])
2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered
2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered
2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered
2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered
2021/07/08 17:12:59 [D] [control.go:222] [7220701f73fc656a] work connection pool is full, discarding
2021/07/08 17:12:59 [D] [control.go:222] [7220701f73fc656a] work connection pool is full, discarding
2021/07/08 17:12:59 [D] [control.go:222] [7220701f73fc656a] work connection pool is full, discarding
2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
....
...
...
...
2021/07/08 17:13:04 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:18 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:19 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:20 [D] [control.go:473] [7220701f73fc656a] receive heartbeat
2021/07/08 17:13:20 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:20 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:21 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:22 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed
2021/07/08 17:13:50 [D] [control.go:473] [7220701f73fc656a] receive heartbeat
2021/07/08 17:14:20 [D] [control.go:473] [7220701f73fc656a] receive heartbeat
2021/07/08 17:14:50 [D] [control.go:473] [7220701f73fc656a] receive heartbeat

Steps to reproduce the issue

  1. Create an FRPS instance with the above config.
  2. Create any FRPC-android client instance.
  3. Connect FRPC to FRPS and wait for 10-30min.

Supplementary information
Restating/reloading the client or server fixes the issue temporarily (for another 10-30min).

Can you guess what caused this issue
Unfortunately, no.

Checklist:

  • I included all information required in the sections above
  • I made sure there are no duplicates of this report (Use Search)
Originally created by @thesocialproxy on GitHub (Jul 8, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2474 Version: FRPS 0.37.0 OS: Ubuntu 20.04.2 LTS CPU architecture: Intel **[REQUIRED] description of errors** I am using FRPS and [FRPC-Android](https://github.com/FrpcCluster/frpc-Android) to connect to it, then I am connecting to FRPS as a proxy user, everything is working perfectly, but after the connection is running for a few minutes, any request that will be sent to FRPS will trigger a timeout error, it seems like FRPS stopped listening for incoming requests. I know FRPC-Android is probably not supported by this project, but it seems like an FRPS issue since FRPS is not even receiving the proxy user connection request as far as I can tell (you can see there is nothing in the logs regarding an incoming connection). I also tried searching the archives but have found no similar issue before. **confile** ``` [common] bind_addr = 0.0.0.0 bind_port = 7000 bind_udp_port = 7001 kcp_bind_port = 7000 dashboard_addr = 0.0.0.0 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = test123 enable_prometheus = true log_file = ./frps.log log_level = debug log_max_days = 3 disable_log_color = false detailed_errors_to_client = true authentication_method = token authenticate_heartbeats = false authenticate_new_work_conns = false token = xxxxxxxx oidc_issuer = oidc_audience = oidc_skip_expiry_check = false oidc_skip_issuer_check = false allow_ports = 2000-3000,3001,3003,4000-50000 max_pool_count = 5 max_ports_per_client = 0 tls_only = false subdomain_host = frps.com tcp_mux = true udp_packet_size = 1500 ``` **log file** ``` 2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717] 2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:32918]) 2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered 2021/07/08 17:12:59 [I] [proxy.go:162] [7220701f73fc656a] [android_fdc] get a user connection [xx.xx.xx.xx:45400] 2021/07/08 17:12:59 [D] [control.go:248] [7220701f73fc656a] get work connection from pool 2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717] 2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:45400]) 2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered 2021/07/08 17:12:59 [I] [proxy.go:162] [7220701f73fc656a] [android_fdc] get a user connection [xx.xx.xx.xx:33756] 2021/07/08 17:12:59 [D] [control.go:248] [7220701f73fc656a] get work connection from pool 2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717] 2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:33756]) 2021/07/08 17:12:59 [I] [proxy.go:162] [7220701f73fc656a] [android_fdc] get a user connection [xx.xx.xx.xx:56658] 2021/07/08 17:12:59 [D] [control.go:248] [7220701f73fc656a] get work connection from pool 2021/07/08 17:12:59 [D] [proxy.go:103] [7220701f73fc656a] [android_fdc] get a new work connection: [xx.xx.xx.xx:37717] 2021/07/08 17:12:59 [D] [proxy.go:273] [7220701f73fc656a] [android_fdc] join connections, workConn(l[xx.xx.xx.xx:7000] r[xx.xx.xx.xx:37717]) userConn(l[xx.xx.xx.xx:6000] r[xx.xx.xx.xx:56658]) 2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered 2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered 2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered 2021/07/08 17:12:59 [D] [control.go:219] [7220701f73fc656a] new work connection registered 2021/07/08 17:12:59 [D] [control.go:222] [7220701f73fc656a] work connection pool is full, discarding 2021/07/08 17:12:59 [D] [control.go:222] [7220701f73fc656a] work connection pool is full, discarding 2021/07/08 17:12:59 [D] [control.go:222] [7220701f73fc656a] work connection pool is full, discarding 2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:12:59 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed .... ... ... ... 2021/07/08 17:13:04 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:18 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:19 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:20 [D] [control.go:473] [7220701f73fc656a] receive heartbeat 2021/07/08 17:13:20 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:20 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:21 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:22 [D] [proxy.go:283] [7220701f73fc656a] [android_fdc] join connections closed 2021/07/08 17:13:50 [D] [control.go:473] [7220701f73fc656a] receive heartbeat 2021/07/08 17:14:20 [D] [control.go:473] [7220701f73fc656a] receive heartbeat 2021/07/08 17:14:50 [D] [control.go:473] [7220701f73fc656a] receive heartbeat ``` **Steps to reproduce the issue** 1. Create an FRPS instance with the above config. 2. Create any FRPC-android client instance. 3. Connect FRPC to FRPS and wait for 10-30min. **Supplementary information** Restating/reloading the client or server fixes the issue temporarily (for another 10-30min). **Can you guess what caused this issue** Unfortunately, no. **Checklist**: - [x] I included all information required in the sections above - [x] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue)
Author
Owner

@thesocialproxy commented on GitHub (Jul 15, 2021):

Solved! The problem was on the FRPC-android side, the connection was dropping there.

<!-- gh-comment-id:880880876 --> @thesocialproxy commented on GitHub (Jul 15, 2021): Solved! The problem was on the FRPC-android side, the connection was dropping there.
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#1963
No description provided.