[GH-ISSUE #4709] [Feature Request] API to kill tunnels #3719

Closed
opened 2026-05-05 14:23:08 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @mobilemodula on GitHub (Mar 13, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4709

Description

Hi, at production we got lots of issues about internet connection drops, machine being turned-off, power loss... Most of the time reverse tunnels stuck open until timeout (2h is the default value) close them, I really don't wanna decrease this value because it will generate a lot of bandwhich because I use something about 300 connections. In my mind it would be ideal to:

  1. try to reopen a connection, then:
    A: it opens fine, ok 👍
    B: it "name/ID" is already open, gonna send a call to kill this tunnel and then I can open it 👍

It's possible to be my fault, but at my comprehension it would be so useful to interact like that with frps, if you have another ideia to solve this kinda scenario I would be grateful to listen. Thanks for your attention!

Alternatives I've considered

  1. Restarting the server whe needed
  2. Decreasing timeout values and increase bandwhich usage by that

Affected area

  • Developer Infrastructure
Originally created by @mobilemodula on GitHub (Mar 13, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4709 ### Description Hi, at production we got lots of issues about internet connection drops, machine being turned-off, power loss... Most of the time reverse tunnels stuck open until timeout (2h is the default value) close them, I really don't wanna decrease this value because it will generate a lot of bandwhich because I use something about 300 connections. In my mind it would be ideal to: 1. try to reopen a connection, then: A: it opens fine, ok 👍 B: it "name/ID" is already open, gonna send a call to kill this tunnel and then I can open it 👍 It's possible to be my fault, but at my comprehension it would be so useful to interact like that with frps, if you have another ideia to solve this kinda scenario I would be grateful to listen. Thanks for your attention! ### Alternatives I've considered 1. Restarting the server whe needed 2. Decreasing timeout values and increase bandwhich usage by that ### Affected area - [x] Developer Infrastructure
gitea-mirror 2026-05-05 14:23:08 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 28, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:2759889015 --> @github-actions[bot] commented on GitHub (Mar 28, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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: github-starred/frp#3719
No description provided.