mirror of
https://github.com/fosrl/newt.git
synced 2026-05-06 07:59:04 -05:00
[PR #306] [MERGED] fix(proxy): reclaim idle UDP flows and make timeout configurable #2265
Reference in New Issue
Block a user
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/fosrl/newt/pull/306
Author: @LaurenceJJones
Created: 4/9/2026
Status: ✅ Merged
Merged: 4/13/2026
Merged by: @oschwartz10612
Base:
dev← Head:investigate/heap-leak-udp-proxy📝 Commits (2)
31f8995fix(proxy): reclaim idle UDP flows and make timeout configurable0569525Merge remote-tracking branch 'upstream/dev' into investigate/heap-leak-udp-proxy📊 Changes
2 files changed (+40 additions, -0 deletions)
View changed files
📝
main.go(+16 -0)📝
proxy/manager.go(+24 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Add a default 90 seconds readdealine on UDP proxy connection, as found in #268 heap provided by the user it seems that even if the connection is "disconnected" on peer end since its not TCP there is no "connection lost" we have to add a readdeadline timer.
How to test?
When a UDP target is configured a connection should allocate 64kb memory for the buffer pool, once the connection is dead or idle for 90 seconds for default, the connection is closed and reclaims the routine and buffer allocation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.