mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1103] frpc p2p模式退出后连接一直保持 #864
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#864
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 @Cyclonekid on GitHub (Feb 27, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1103
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.24.1
What operating system and processor architecture are you using (
go env)?Linux amd64
OS Redhat 6.9
Configures you used:
A
[common]
server_addr = ...
server_port = 16000
token = **********
[p2p_ssh_11]
type = xtcp
sk = 111111111
local_ip = 127.0.0.1
local_port = 22
B
[common]
server_addr = ...
server_port = 16000
token = **********
[ssh_visitor_11]
type = xtcp
role = visitor
server_name = p2p_ssh_11
sk = 111111111
bind_addr = 0.0.0.0
bind_port = 6000
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
复现率100%
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Mar 3, 2019):
本地无法复现。
@Cyclonekid commented on GitHub (Mar 5, 2019):
我这产生的链接记录,客户端全部已经退出,但链接一直保持ES,除非重新启动A机的FRPC

打开debug日志后,日志只显示连接的日志,看不到有退出的相关日志
@fatedier commented on GitHub (Mar 5, 2019):
在某些类型设备后确实会有问题,增加一个心跳包的机制,差不多 5 - 10 秒左右会释放这些连接。
下个版本中发布,但是 xtcp 将会不兼容旧版本的 frpc,需要两边的 frpc 都同步更新到新版本。