mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1508] Connection closed unexpectedly and stuck in a disconnect-reconnect loop #1191
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#1191
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 @nakululusatuva on GitHub (Nov 10, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1508
Issue is only used for submitting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
(请不要在 issue 评论中出现无意义的 加1,我也是 等内容,将会被直接删除。)
(由于个人精力有限,和系统环境,网络环境等相关的求助问题请转至其他论坛或社交平台。)
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)?
frps: 0.29.0
frpc: 0.27.1
What operating system and processor architecture are you using (
go env)?frps: Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64
frpc: Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64
Configures you used:
frps.ini
frpc.ini
Steps to reproduce the issue:
Describe the results you received:
Unreliable connections between server-side and client-side
Describe the results you expected:
More stability and no more disconnect-reconnect loop.
Additional information you deem important (e.g. issue happens only occasionally):
Logs of client
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Nov 11, 2019):
Any log of frps?
Maybe it's disconnected by the fireware.
@i542873057 commented on GitHub (Nov 11, 2019):
我也出现了相同的错误

运行一段时间儿会突然出现 这个错误,然后重连又好了,但是会很卡,然后过会儿又断了
@nakululusatuva commented on GitHub (Nov 11, 2019):
@fatedier Unfortunately, I forgot to set the log path on the server-side, but according to the output of "systemctl status frps" while the bug is happening, the situation is quite the same as the client, it just repeats "client login" and "client disconnect success".
It seems like its a bug since 0.24.1, After research on google I switch back to 0.24.0 on both server and client and the bug doesn't show up again (frps0.29.0+frpc0.24.0 still has the problem).
I guess it might be caused by a large number of invalid TCP requests. The client-side works 7x24, just before the bug happens, my bitcoin service on the client-side was down 2-days ago before the bug happened and I didn't notice, so the local port 8333 was closed, meanwhile, frps is still listening and a lot of TCP request was received, so that cause the crash?
It could be a kind of possibility, but this bug used to happen more than once without a situation like this.
Btw, this is my iptables configuration:
client-side
server-side
@fatedier commented on GitHub (Nov 11, 2019):
You should find why the client is closed from server. frps's log may have some info about it. Try to reproduce it and paste the frps log.
It's better use same version frpc and frps.
@AuroraDysis commented on GitHub (Nov 15, 2019):
same problem
frpc.ini
frps.ini
client side log
server side log
@fatedier commented on GitHub (Nov 18, 2019):
@AuroraDysis set
tls_enable = trueorprotocol = kcp.Maybe it's blocked by the network provider.
@AuroraDysis commented on GitHub (Nov 18, 2019):
@fatedier This error happens by chance. I can fix it by restarting my frps docker when it happens. Anyway, I will try the configs you suggested and see if the error still exists. Thanks for your help.
@befantasy commented on GitHub (Feb 16, 2020):
很早之前就发现了这个问题。。。感觉好像是被GFW干扰了。
不访问FRP服务的话,一般不会出这个error。经常一访问立即就出。
@fatedier commented on GitHub (Feb 16, 2020):
@befantasy 外层再套一层加密工具中转- -
@befantasy commented on GitHub (Feb 16, 2020):
没注意最近的版本增加了tls_enable = true这个功能。
刚才试了试,好像开了以后好了很多。