mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1931] 希望能提供选项, 在客户端初次连接失败时, 进行稳妥的重连 #1533
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#1533
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 @yyjdelete on GitHub (Aug 3, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1931
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.
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)?
What operating system and processor architecture are you using (
go env)?Configures you used:
纯测试, 开在同一台机器上的
frpc.ini(kcp模式去掉注释即可)
frps.ini
Steps to reproduce the issue:
Describe the results you received:
TCP: 立即退出, 不会进行重连
KCP: 卡死在提示
login to server failed: i/o deadline reached之后,Ctrl+C强制退出会出现panic.Describe the results you expected:
客户端和已经连上之后再断开一样, 进行正常的重连(而不是卡死或者立即退出)
(这个对于将frpc作为后台服务稳定的启动起来比较重要, 手工执行的话倒是无所谓)
(tcp/kcp二者对于连上之后退出frps的情况均能正常重连, 主要是初次连接失败后的情况)
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Aug 3, 2020):
https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini#L46
login_fail_exit = false搜索历史 issue 也可以看到类似的问题。