[GH-ISSUE #4573] [Feature Request] ad-hoc or long-lived (persistent) connections to target? #3615

Closed
opened 2026-05-05 14:19:16 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ofirc on GitHub (Dec 5, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4573

Describe the feature request

In the typical setup of:
client -> frps -> frpc -> private service (e.g. web server)

Does the frp client (frpc) keep a persistent connection to the (target) private service or is it ad-hoc, i.e. every time the client wants to contact the private service (through frps -> frpc) it will open a new socket (and close it later)?
What's the default, is it configurable via the toml?

Thanks!

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ofirc on GitHub (Dec 5, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4573 ### Describe the feature request In the typical setup of: client -> frps -> frpc -> private service (e.g. web server) Does the frp client (frpc) keep a persistent connection to the (target) private service or is it ad-hoc, i.e. every time the client wants to contact the private service (through frps -> frpc) it will open a new socket (and close it later)? What's the default, is it configurable via the [toml](https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml)? Thanks! ### Describe alternatives you've considered _No response_ ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [X] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:19:16 -06:00
Author
Owner

@fatedier commented on GitHub (Dec 5, 2024):

For tcp proxy, the connections are 1:1. For http proxy, the default Golang HTTP connection pool is used and it is not configurable.

<!-- gh-comment-id:2519019045 --> @fatedier commented on GitHub (Dec 5, 2024): For `tcp` proxy, the connections are 1:1. For `http` proxy, the default Golang HTTP connection pool is used and it is not configurable.
Author
Owner

@ofirc commented on GitHub (Dec 10, 2024):

Thanks @fatedier for the prompt response!

<!-- gh-comment-id:2530028932 --> @ofirc commented on GitHub (Dec 10, 2024): Thanks @fatedier for the prompt response!
Author
Owner

@github-actions[bot] commented on GitHub (Dec 25, 2024):

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

<!-- gh-comment-id:2561509212 --> @github-actions[bot] commented on GitHub (Dec 25, 2024): 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#3615
No description provided.