mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-01-12 13:55:37 +08:00
Close conn on cancel
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user