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 71 Go

fix: return buffers to pool on error paths to reduce GC pressure (#5203)

- pkg/nathole/nathole.go: add pool.PutBuf(buf) on ReadFromUDP error
  and DecodeMessageInto error paths in waitDetectMessage
- pkg/proto/udp/udp.go: add defer pool.PutBuf(buf) in writerFn to
  ensure buffer is returned when the goroutine exits
F
fatedier committed
8f633fe363ae20d244e23b77b8dc5260b3171e8f
Parent: c62a1da
Committed by GitHub <noreply@github.com> on 3/6/2026, 7:55:22 AM