[PR #306] [MERGED] fix(proxy): reclaim idle UDP flows and make timeout configurable #1046

Closed
opened 2026-04-19 14:28:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: investigate/heap-leak-udp-proxy


📝 Commits (2)

  • 31f8995 fix(proxy): reclaim idle UDP flows and make timeout configurable
  • 0569525 Merge 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.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/newt/pull/306 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/13/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `investigate/heap-leak-udp-proxy` --- ### 📝 Commits (2) - [`31f8995`](https://github.com/fosrl/newt/commit/31f899588f0406d9e1b2b857952b1ee7b7331fe5) fix(proxy): reclaim idle UDP flows and make timeout configurable - [`0569525`](https://github.com/fosrl/newt/commit/0569525743a9e182cc159f2d2070c3051fecccc7) Merge remote-tracking branch 'upstream/dev' into investigate/heap-leak-udp-proxy ### 📊 Changes **2 files changed** (+40 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+16 -0) 📝 `proxy/manager.go` (+24 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 14:28:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#1046