[GH-ISSUE #2574] http类型的connections统计出现负数 #2048

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

Originally created by @ohto-ai on GitHub (Sep 13, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2574

Bug Description

截图
在frpc端使用kill杀掉进程后,后来发现面板中的连接统计数量出现-2。

frpc Version

0.37.1

frps Version

0.37.1

System Architecture

linux/amd64

Configurations

; frpc.ini
[common]
token = xxxxxxx
server_addr = thatboy.info
server_port = 7000
user = xyz

[oa]
type = http
local_ip = oa.yyy.zzz
; oa.yyy.zzz为内网地址
local_port = 80
use_compression = true
subdomain = oa
; 其他配置略
; frps.ini
[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
subdomain_host = thatboy.info
dashboard_port = 7500
enable_prometheus = true
token = xxxxxxx
log_file = ./frps.log
custom_404_page = ./static/404.html

Logs

出现错误统计的是UbuntuPC.oa

2021/09/13 11:17:47 [I] [control.go:307] [9efb0af3e3a739e4] control writer is closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.ssh] proxy closing
2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.ssh] listener is closed: accept tcp [::]:2201: use of closed network connection
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.ssh2] proxy closing
2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.ssh2] listener is closed: accept tcp [::]:2202: use of closed network connection
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website1] proxy closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website2] proxy closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website3] proxy closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.admin] proxy closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website4] proxy closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.http_proxy] proxy closing
2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.http_proxy] listener is closed: accept tcp [::]:6000: use of closed network connection
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website5] proxy closing
2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.oa] proxy closing
2021/09/13 11:17:47 [I] [control.go:382] [9efb0af3e3a739e4] client exit success
2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.website3] listener is closed: Listener closed
2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.website4] listener is closed: Listener closed
2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.website6] listener is closed: Listener closed

Steps to reproduce

  1. 开启frpc后,使用反代地址访问内网地址
  2. 在frpc端使用kill -9杀掉frpc
  3. 在面板查看到负数的连接数
    【不一定可以复现】

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Others
  • Developer Infrastructure
  • Client Plugin
  • Extensions
  • Server Plugin
Originally created by @ohto-ai on GitHub (Sep 13, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2574 ### Bug Description ![截图](https://user-images.githubusercontent.com/46275725/133125358-181198cf-161e-4d78-ab82-582008a01d88.png) 在frpc端使用kill杀掉进程后,后来发现面板中的连接统计数量出现-2。 ### frpc Version 0.37.1 ### frps Version 0.37.1 ### System Architecture linux/amd64 ### Configurations ```ini ; frpc.ini [common] token = xxxxxxx server_addr = thatboy.info server_port = 7000 user = xyz [oa] type = http local_ip = oa.yyy.zzz ; oa.yyy.zzz为内网地址 local_port = 80 use_compression = true subdomain = oa ; 其他配置略 ``` ```ini ; frps.ini [common] bind_port = 7000 vhost_http_port = 80 vhost_https_port = 443 subdomain_host = thatboy.info dashboard_port = 7500 enable_prometheus = true token = xxxxxxx log_file = ./frps.log custom_404_page = ./static/404.html ``` ### Logs 出现错误统计的是UbuntuPC.oa ```log 2021/09/13 11:17:47 [I] [control.go:307] [9efb0af3e3a739e4] control writer is closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.ssh] proxy closing 2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.ssh] listener is closed: accept tcp [::]:2201: use of closed network connection 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.ssh2] proxy closing 2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.ssh2] listener is closed: accept tcp [::]:2202: use of closed network connection 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website1] proxy closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website2] proxy closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website3] proxy closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.admin] proxy closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website4] proxy closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.http_proxy] proxy closing 2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.http_proxy] listener is closed: accept tcp [::]:6000: use of closed network connection 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.website5] proxy closing 2021/09/13 11:17:47 [I] [proxy.go:88] [9efb0af3e3a739e4] [UbuntuPC.oa] proxy closing 2021/09/13 11:17:47 [I] [control.go:382] [9efb0af3e3a739e4] client exit success 2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.website3] listener is closed: Listener closed 2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.website4] listener is closed: Listener closed 2021/09/13 11:17:47 [W] [proxy.go:176] [9efb0af3e3a739e4] [UbuntuPC.website6] listener is closed: Listener closed ``` ### Steps to reproduce 1. 开启frpc后,使用反代地址访问内网地址 2. 在frpc端使用kill -9杀掉frpc 3. 在面板查看到负数的连接数 【不一定可以复现】 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [X] Others - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Extensions - [ ] Server Plugin
gitea-mirror 2026-05-05 13:19:18 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 15, 2021):

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

<!-- gh-comment-id:943864852 --> @github-actions[bot] commented on GitHub (Oct 15, 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#2048
No description provided.