[PR #16] [MERGED] Fix tunnel deletion with active connections by adding cleanup logic #14

Closed
opened 2026-03-04 01:38:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tuanngocptn/nport/pull/16
Author: @tuanngocptn
Created: 2/5/2026
Status: Merged
Merged: 2/5/2026
Merged by: @tuanngocptn

Base: mainHead: fix/set_timeout_on_server


📝 Commits (1)

  • 6638160 Fix tunnel deletion with active connections by adding cleanup logic

📊 Changes

2 files changed (+35 additions, -0 deletions)

View changed files

📝 server/CHANGELOG.md (+8 -0)
📝 server/src/index.ts (+27 -0)

📄 Description

  • Implemented cleanupTunnelConnections() function to remove stale connections before deleting a tunnel, preventing Cloudflare API error #1022.
  • Updated deleteTunnel() to automatically clean up connections prior to deletion.
  • Enhanced CHANGELOG to document the fix and new functionality.

🔄 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/tuanngocptn/nport/pull/16 **Author:** [@tuanngocptn](https://github.com/tuanngocptn) **Created:** 2/5/2026 **Status:** ✅ Merged **Merged:** 2/5/2026 **Merged by:** [@tuanngocptn](https://github.com/tuanngocptn) **Base:** `main` ← **Head:** `fix/set_timeout_on_server` --- ### 📝 Commits (1) - [`6638160`](https://github.com/tuanngocptn/nport/commit/66381601af3e30cd3d5a22445cefe7497228420d) Fix tunnel deletion with active connections by adding cleanup logic ### 📊 Changes **2 files changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/CHANGELOG.md` (+8 -0) 📝 `server/src/index.ts` (+27 -0) </details> ### 📄 Description - Implemented `cleanupTunnelConnections()` function to remove stale connections before deleting a tunnel, preventing Cloudflare API error #1022. - Updated `deleteTunnel()` to automatically clean up connections prior to deletion. - Enhanced CHANGELOG to document the fix and new functionality. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:38:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nport#14
No description provided.