mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1055] 服务器延迟大导致连接中断 #829
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#829
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 @xuexiaokang on GitHub (Jan 20, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1055
What version of frp are you using (./frpc -v or ./frps -v)?
FRPS:0.23.1
FRPC:0.23.1
What operating system and processor architecture are you using (
go env)?FRPS:amd64
FRPC:mips
Configures you used:*
frps.ini:
frpc.ini:
Steps to reproduce the issue:
用国外延迟比较高的VPS做服务器,国内穿透的时候很容易出现
Describe the results you received:
Describe the results you expected:
由于做服务端的服务器在国外,到国内的延迟较大,超过200ms,导致经常出现断线的错误,在配置文件中有哪个参数可以设置这个超时的时间吗?实际使用中客户端到服务端延迟超过90ms就会被断开,导致穿透后打开web的页面总是会加载不完全,显示不正常。
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
在配置文件中有哪个参数可以设置这个超时的时间吗?想修改成延迟500ms也不断开
@BingYanchi commented on GitHub (Jan 20, 2019):
如果我没有记错,在以往的issues里作者说过,frps.ini里面有设置的选项。你可以参考frps-full.ini
@fatedier commented on GitHub (Jan 20, 2019):
这个和延迟没有关系,和丢包有关系,丢包率太高的话,网络不稳定就会这样,改配置也没有用。
@fatedier commented on GitHub (Jan 20, 2019):
可以尝试将 protocol 设置为 kcp,可能会有一定好转。
@xuexiaokang commented on GitHub (Jan 21, 2019):
FRP的流量是否会遇上被GFW阻断的情况?开启加密能防止阻断吗?
@fatedier commented on GitHub (Jan 21, 2019):
@xuexiaokang 不在本项目的讨论范围内,请自行测试。
@xuexiaokang commented on GitHub (Jan 21, 2019):
使用kcp之后,情况依旧还是没多大改善,无奈只好将服务器改用国内的,直接把服务器域名由原先的国外IP改成了国内IP,但是发现都过了几个小时了,域名已经生效了,Dashboard也已经正常打开为国内的服务器,但是访问客户端的WEB服务依旧还是
这个说明FRPC客户端没有自动更新的功能,这个如何开启让客户端自动更新到新服务器IP呢?我一直采用
server_addr = frp.xxx.com域名的连接方式,这种情况有点像动态公网IP做FCPS的情况,这样不会自动更新,是个麻烦事,有办法解决吗
@fatedier commented on GitHub (Jan 21, 2019):
此 issue 关闭。
域名会自己做解析,如果有问题请先自己在 frpc 所在机器上调试。如果确认是 bug 再另外提 issue 描述具体内容。