[GH-ISSUE #2658] Failure on tcp connection [ssh/http] periodically around 5 minutes #2120

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

Originally created by @benrich-su on GitHub (Nov 15, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2658

Bug Description

Failure on tcp connection [ssh/http] periodically around 5 minutes as below from frp server logs
2021/11/15 15:04:10 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 15:09:52 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 16:34:53 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 16:39:51 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 16:44:34 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 16:49:38 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 16:54:41 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:00:19 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:05:13 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:10:21 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:15:04 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:30:51 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:35:44 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:40:33 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:45:51 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:51:04 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 17:56:00 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection
2021/11/15 18:01:24 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection

frpc Version

0.38.0

frps Version

0.38.0

System Architecture

windows/amd64

Configurations

frps.ini
[common]
bind_port = 7000
#bind_udp_port = 7000
token = token
vhost_http_port = 8080
vhost_https_port = 8081

#dashboard config
dashboard_port = 7001
dashboard_user = frpserver
dashboard_pwd = frplinux
enable_prometheus = true

#log
log_file = /var/log/frps.log
log_level = info
log_max_days = 3

frpc.ini
[common]
server_addr = custom.domain.com
server_port = 7000
token = token

#log
log_level = info
log_file = /var/log/frpc.log
log_max_days = 3

#[p2p_ssh]
#type = xtcp
#sk = token
#local_ip = 192.168.1.20
#local_port = 22

[ssh]
type = tcp
local_ip = 192.168.1.20
local_port = 22
remote_port = 50000

[web_http]
type = http
local_ip = 192.168.1.20
local_port = 80
custom_domains = custom.domain.com
remote_port = 8080

[web_https]
type = https
local_ip = 192.168.1.20
local_port = 443
custom_domains = custom.domain.com
#subdomain = frp
remote_port = 8081

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @benrich-su on GitHub (Nov 15, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2658 ### Bug Description Failure on tcp connection [ssh/http] periodically around 5 minutes as below from frp server logs 2021/11/15 15:04:10 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 15:09:52 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 16:34:53 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 16:39:51 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 16:44:34 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 16:49:38 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 16:54:41 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:00:19 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:05:13 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:10:21 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:15:04 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:30:51 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:35:44 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:40:33 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:45:51 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:51:04 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 17:56:00 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection 2021/11/15 18:01:24 [W] [proxy.go:176] [4e2a89d35d7690b2] [richzealand_ssh] listener is closed: accept tcp [::]:50000: use of closed network connection ### frpc Version 0.38.0 ### frps Version 0.38.0 ### System Architecture windows/amd64 ### Configurations frps.ini [common] bind_port = 7000 #bind_udp_port = 7000 token = token vhost_http_port = 8080 vhost_https_port = 8081 #dashboard config dashboard_port = 7001 dashboard_user = frpserver dashboard_pwd = frplinux enable_prometheus = true #log log_file = /var/log/frps.log log_level = info log_max_days = 3 frpc.ini [common] server_addr = custom.domain.com server_port = 7000 token = token #log log_level = info log_file = /var/log/frpc.log log_max_days = 3 #[p2p_ssh] #type = xtcp #sk = token #local_ip = 192.168.1.20 #local_port = 22 [ssh] type = tcp local_ip = 192.168.1.20 local_port = 22 remote_port = 50000 [web_http] type = http local_ip = 192.168.1.20 local_port = 80 custom_domains = custom.domain.com remote_port = 8080 [web_https] type = https local_ip = 192.168.1.20 local_port = 443 custom_domains = custom.domain.com #subdomain = frp remote_port = 8081 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:21:45 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2021):

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

<!-- gh-comment-id:995327734 --> @github-actions[bot] commented on GitHub (Dec 16, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#2120
No description provided.