mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-01-12 21:57:15 +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 {
|
if newCancel != nil {
|
||||||
newCancel()
|
newCancel()
|
||||||
}
|
}
|
||||||
|
conn.Close()
|
||||||
}, sessionPolicy.Timeouts.ConnectionIdle)
|
}, sessionPolicy.Timeouts.ConnectionIdle)
|
||||||
|
|
||||||
clientReader := link.Reader // .(*pipe.Reader)
|
clientReader := link.Reader // .(*pipe.Reader)
|
||||||
|
|||||||
Reference in New Issue
Block a user