mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #237] frps运行一段时间后会自动退出 #164
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @serverspeed on GitHub (Jan 17, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/237
以下是错误信息
[root@OpenVZVPS-2016105652 frp]# ./frps -c ./frps.ini
panic: send on closed channel
goroutine 4774 [running]:
panic(0x764840, 0xc4203c5580)
/home/wcl/.gvm/gos/go1.7.4/src/runtime/panic.go:500 +0x1a1
github.com/fatedier/frp/src/models/server.(*ProxyServer).connectionPoolManager(0xc4203d1340, 0xc4206dc720)
/home/wcl/go_projects/src/github.com/fatedier/frp/src/models/server/server.go:458 +0x134
created by github.com/fatedier/frp/src/models/server.(*ProxyServer).Start
/home/wcl/go_projects/src/github.com/fatedier/frp/src/models/server/server.go:235 +0x223
错误日志
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:212] [W] ProxyName [syncz] is not exist
2017/01/17 12:53:46 [control.go:343] [W] ProxyName [syncz], is not working when it gets one new work connnection
2017/01/17 12:53:46 [control.go:343] [W] ProxyName [syncz], is not working when it gets one new work connnection
2017/01/17 12:53:46 [control.go:343] [W] ProxyName [syncz], is not working when it gets one new work connnection
2017/01/17 12:53:46 [control.go:343] [W] ProxyName [syncz], is not working when it gets one new work connnection
2017/01/17 12:53:46 [control.go:343] [W] ProxyName [syncz], is not working when it gets one new work connnection
2017/01/17 12:53:46 [server.go:159] [I] ProxyName [syncz], type http listen for host [syncz.ml] location []
2017/01/17 12:53:46 [server.go:159] [I] ProxyName [syncz], type http listen for host [www.syncz.ml] location []
2017/01/17 12:53:46 [control.go:336] [I] ProxyName [syncz], start proxy success
2017/01/17 12:53:46 [control.go:338] [I] ProxyName [syncz], created by PrivilegeMode
2017/01/17 12:53:46 [control.go:343] [W] ProxyName [syncz], is not working when it gets one new work connnection
2017/01/17 12:55:57 [server.go:246] [I] ProxyName [syncz], listener is closed
2017/01/17 12:55:57 [server.go:246] [I] ProxyName [syncz], listener is closed
2017/01/17 12:55:57 [control.go:133] [E] ProxyName [syncz], client heartbeat timeout
2017/01/17 12:55:57 [control.go:185] [W] ProxyName [syncz], write to client error, proxy exit
我的frps.ini配置文件
[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_port = 7500
log_file = ./frps.log
log_level = info
log_max_days = 3
privilege_mode = true
privilege_token = frp888
max_pool_count = 10000
麻烦您提示一下我该怎么解决。
@fatedier commented on GitHub (Jan 17, 2017):
开启连接池之后,有一定几率会发生这个问题,可以先不启用连接池。
正在重构代码,这部分会简单加个保护防止程序异常退出。
@serverspeed commented on GitHub (Jan 18, 2017):
不启用连接池后不自动退出了,感谢!解决方法:将服务器max_pool_count注释 ,客户端pool_count注释