[GH-ISSUE #3424] frps control writer is closing #2742

Closed
opened 2026-05-05 13:45:57 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @GUMEIK on GitHub (Apr 24, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3424

Bug Description

frps每隔一段时间(大概70s左右)就会断开连接,无法使用,日志打印control writer is closing。断开链接后,大概4mins左右会重新连接

frpc Version

0.38

frps Version

0.38

System Architecture

linux

Configurations

version 0.38.0
BindPort 7000
BindUdpPort disable
Http Port 7080
Https Port 7081
Subdomain Host

Max PoolCount 5
Max Ports Per Client no limit
HeartBeat Timeout 90

Logs

2023/04/24 07:02:10 [W] [proxy.go:101] [899fcde41cf14fca] [nextcloud] failed to get work connection: control is closed

2023/04/24 07:02:21 [I] [dashboard_api.go:185] Http request: [/api/proxy/tcp]

2023/04/24 07:02:21 [I] [dashboard_api.go:179] Http response [/api/proxy/tcp]: code [200]

2023/04/24 07:06:33 [I] [service.go:447] [899fcde41cf14fca] client login info: ip [120.244.42.44:12236] version [0.38.0] hostname [] os [linux] arch [amd64]

2023/04/24 07:06:33 [I] [tcp.go:63] [899fcde41cf14fca] [nextcloud] tcp proxy listen port [9100]

2023/04/24 07:06:33 [I] [control.go:444] [899fcde41cf14fca] new proxy [nextcloud] success

2023/04/24 07:07:09 [I] [proxy.go:179] [899fcde41cf14fca] [nextcloud] get a user connection [120.244.42.44:11808]

2023/04/24 07:07:43 [I] [control.go:307] [899fcde41cf14fca] control writer is closing

2023/04/24 07:07:43 [I] [proxy.go:88] [899fcde41cf14fca] [nextcloud] proxy closing

2023/04/24 07:07:43 [W] [proxy.go:176] [899fcde41cf14fca] [nextcloud] listener is closed: accept tcp [::]:9100: use of closed network connection

2023/04/24 07:07:43 [I] [control.go:382] [899fcde41cf14fca] client exit success

2023/04/24 07:08:17 [I] [dashboard_api.go:70] Http request: [/api/serverinfo]

2023/04/24 07:08:17 [I] [dashboard_api.go:63] Http response [/api/serverinfo]: code [200]

Steps to reproduce

1.查看日志:2023/04/24 07:07:09 [I] [proxy.go:179] [899fcde41cf14fca] [nextcloud] get a user connection [120.244.42.44:11808]
2.查看日志: 2023/04/24 07:07:43 [I] [control.go:307] [899fcde41cf14fca] control writer is closing

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @GUMEIK on GitHub (Apr 24, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3424 ### Bug Description frps每隔一段时间(大概70s左右)就会断开连接,无法使用,日志打印control writer is closing。断开链接后,大概4mins左右会重新连接 ### frpc Version 0.38 ### frps Version 0.38 ### System Architecture linux ### Configurations version 0.38.0 BindPort 7000 BindUdpPort disable Http Port 7080 Https Port 7081 Subdomain Host Max PoolCount 5 Max Ports Per Client no limit HeartBeat Timeout 90 ### Logs 2023/04/24 07:02:10 [W] [proxy.go:101] [899fcde41cf14fca] [nextcloud] failed to get work connection: control is closed 2023/04/24 07:02:21 [I] [dashboard_api.go:185] Http request: [/api/proxy/tcp] 2023/04/24 07:02:21 [I] [dashboard_api.go:179] Http response [/api/proxy/tcp]: code [200] 2023/04/24 07:06:33 [I] [service.go:447] [899fcde41cf14fca] client login info: ip [120.244.42.44:12236] version [0.38.0] hostname [] os [linux] arch [amd64] 2023/04/24 07:06:33 [I] [tcp.go:63] [899fcde41cf14fca] [nextcloud] tcp proxy listen port [9100] 2023/04/24 07:06:33 [I] [control.go:444] [899fcde41cf14fca] new proxy [nextcloud] success 2023/04/24 07:07:09 [I] [proxy.go:179] [899fcde41cf14fca] [nextcloud] get a user connection [120.244.42.44:11808] 2023/04/24 07:07:43 [I] [control.go:307] [899fcde41cf14fca] control writer is closing 2023/04/24 07:07:43 [I] [proxy.go:88] [899fcde41cf14fca] [nextcloud] proxy closing 2023/04/24 07:07:43 [W] [proxy.go:176] [899fcde41cf14fca] [nextcloud] listener is closed: accept tcp [::]:9100: use of closed network connection 2023/04/24 07:07:43 [I] [control.go:382] [899fcde41cf14fca] client exit success 2023/04/24 07:08:17 [I] [dashboard_api.go:70] Http request: [/api/serverinfo] 2023/04/24 07:08:17 [I] [dashboard_api.go:63] Http response [/api/serverinfo]: code [200] ### Steps to reproduce 1.查看日志:2023/04/24 07:07:09 [I] [proxy.go:179] [899fcde41cf14fca] [nextcloud] get a user connection [120.244.42.44:11808] 2.查看日志: 2023/04/24 07:07:43 [I] [control.go:307] [899fcde41cf14fca] control writer is closing ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:45:57 -06:00
Author
Owner

@Becods commented on GitHub (Apr 26, 2023):

更新你的版本

用其他工具排查是否因为客服网络情况导致

<!-- gh-comment-id:1522800287 --> @Becods commented on GitHub (Apr 26, 2023): 更新你的版本 用其他工具排查是否因为客服网络情况导致
Author
Owner

@github-actions[bot] commented on GitHub (May 27, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1565105512 --> @github-actions[bot] commented on GitHub (May 27, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@Crazyokd commented on GitHub (Nov 9, 2023):

没想到我52.3版本又考古到这里来了。
有解决该问题吗?@GUMEIK

<!-- gh-comment-id:1803656880 --> @Crazyokd commented on GitHub (Nov 9, 2023): 没想到我52.3版本又考古到这里来了。 有解决该问题吗?@GUMEIK
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#2742
No description provided.