Close conn on cancel

This commit is contained in:
风扇滑翔翼
2026-01-08 13:10:32 +00:00
committed by GitHub
parent 36425d2a6e
commit d0bb7a37e6

View File

@@ -295,6 +295,7 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
if newCancel != nil {
newCancel()
}
conn.Close()
}, sessionPolicy.Timeouts.ConnectionIdle)
clientReader := link.Reader // .(*pipe.Reader)