mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3470] port already used 和 router config conflict #2774
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#2774
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 @amxliuli on GitHub (Jun 1, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3470
Bug Description
正常启动frp的客户端和服务端以后,穿透可以正常使用,但是使用一段时间(有时候几天,有时候几分钟)穿透就失败嘞,通过查看日志发现,是客户端会频繁(几分钟)的去login服务端,然后突然有一次就报 端口或者router冲突。
frpc Version
0.38.0
frps Version
0.38.0
System Architecture
linux/amd64
Configurations
Logs
Steps to reproduce
...
Affected area
@Becods commented on GitHub (Jun 1, 2023):
更新你的frp
使用mtr进行连续ping测试
@amxliuli commented on GitHub (Jun 2, 2023):
由于目前穿透应用于生产环境,版本暂时不能立马升级,只做了mtr测试,结果如下:
@amxliuli commented on GitHub (Jun 2, 2023):
今天断开报错是这个

@fatedier commented on GitHub (Jun 2, 2023):
断开大部分都是网络原因,正常情况下,网络恢复后,相同 RunID 的客户端连接上来时,会释放之前的资源,不会出现 port alrewady used。
如果你的 frpc 重启了,之前的 RunID 就丢失了,相当于一个新的客户端。frps 必须等到和之前的客户端心跳超时后,才会释放相关资源。通过修改心跳相关的配置可以降低这个等待的时间。
如果没有重启 frpc,RunID 出现了变化,那可能是 bug。否则,只需要等网络恢复后自动重连。
@amxliuli commented on GitHub (Jun 2, 2023):
heartbeat_timeout = 300
user_conn_timeout = 60
那是不是我把这两个时间需要设置小一点才可以,当网络出现问题的时候,重新连接时候如果时间设置的过程,会导致原来的链接在s端还没有释放,新的连接连接的时候,发现原来的端口有链接,才会报这个问题。
@yzlnew commented on GitHub (Jun 26, 2023):
0.44.0 遇到类似的问题,需要服务端和客户端都重启。
@github-actions[bot] commented on GitHub (Jul 27, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@swzaaaaaaa commented on GitHub (Jan 25, 2024):
请问,有解决方法吗