SIGN IN SIGN UP
fatedier / frp UNCLAIMED

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

0 0 72 Go

server/control: deduplicate close-proxy logic and UserInfo construction (#5218)

Extract closeProxy() helper to eliminate duplicated 4-step cleanup
sequence (Close, PxyManager.Del, metrics, plugin notify) between
worker() and CloseProxy().

Extract loginUserInfo() helper to eliminate 4 repeated plugin.UserInfo
constructions using LoginMsg fields.

Optimize worker() to snapshot and clear the proxies map under lock,
then perform cleanup outside the lock to reduce lock hold time.
F
fatedier committed
764a626b6ee6ba0cc8024148a19e7c02f181647d
Parent: c2454e7
Committed by GitHub <noreply@github.com> on 3/7/2026, 4:02:14 PM