frp icon indicating copy to clipboard operation
frp copied to clipboard

[Feature Request] ad-hoc or long-lived (persistent) connections to target?

Open ofirc opened this issue 1 year ago • 2 comments

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

  • [X] Docs
  • [ ] Installation
  • [ ] Performance and Scalability
  • [ ] Security
  • [ ] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [X] Client Plugin
  • [ ] Server Plugin
  • [X] Extensions
  • [ ] Others

ofirc avatar Dec 05 '24 00:12 ofirc

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

fatedier avatar Dec 05 '24 03:12 fatedier

Thanks @fatedier for the prompt response!

ofirc avatar Dec 10 '24 01:12 ofirc

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

github-actions[bot] avatar Dec 25 '24 00:12 github-actions[bot]