mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-11 10:05:47 +00:00
@@ -117,6 +117,10 @@ func (c *Client) Process(ctx context.Context, link *transport.Link, dialer inter
|
||||
errors.LogInfoInner(ctx, err, "failed to clear deadline after handshake")
|
||||
}
|
||||
|
||||
if session.TimeoutOnlyFromContext(ctx) {
|
||||
ctx = context.WithoutCancel(ctx)
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
timer := signal.CancelAfterInactivity(ctx, cancel, p.Timeouts.ConnectionIdle)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user