mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5265] [CLOSED] 搞错了分支, 抱歉 #5215
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#5215
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/5265
Author: @lovitus
Created: 3/28/2026
Status: ❌ Closed
Base:
dev← Head:tmp-udpfix-pr📝 Commits (1)
61d12b2mix: evict stale udp demux routes📊 Changes
2 files changed (+278 additions, -0 deletions)
View changed files
➕
pkg/transport/mix/udp_demux.go(+227 -0)➕
pkg/transport/mix/udp_demux_test.go(+51 -0)📄 Description
变更说明
本 PR 引入 UDP demux 路由表老化清理机制,避免 UDP 源地址映射长期累积导致内存增长与陈旧路由残留。
主要修改
peerRoute,记录lastSeenpeers从map[string]*demuxPacketConn调整为带时间戳的路由记录udpPeerRouteTTL=5m,udpPeerRoutePruneInterval=1mServe()主循环中按周期 prune 过期 peer route测试
TestUDPDemuxPruneStalePeers,验证过期条目剔除与活跃条目保留TestDemuxPacketConnEnqueueAfterCloseIsDropped备注
该改动不改变现有路由判定逻辑,仅补齐生命周期清理。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.