mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
Same leak class as the previous chainGroup fix: a forwarder built from a hopGroup or inline nodes starts probe goroutines at parse time, but nothing closed them — every SIGHUP reload leaked them permanently. - parseForwarder returns an io.Closer for service-owned hops (hop group or inline nodes); registry-owned named hops return nil since the registry closes them on unregister - ParseService registers the closer via ClosersOption and closes it when construction fails partway - hopGroup.Close no longer closes the underlying hops: they come from the HopRegistry and are shared with other referents; closing them here would kill shared state