mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-26 13:14:14 +00:00
UDP: update last-active-time even when request-data is received
This commit is contained in:
parent
fbae89d017
commit
bc7922cbe1
1 changed files with 3 additions and 1 deletions
|
@ -93,12 +93,14 @@ func (v *Dispatcher) Dispatch(ctx context.Context, destination net.Destination,
|
|||
return
|
||||
}
|
||||
outputStream := conn.link.Writer
|
||||
timer := conn.timer
|
||||
if outputStream != nil {
|
||||
if err := outputStream.WriteMultiBuffer(buf.MultiBuffer{payload}); err != nil {
|
||||
errors.LogInfoInner(ctx, err, "failed to write first UDP payload")
|
||||
errors.LogInfoInner(ctx, err, "failed to write UDP payload")
|
||||
conn.cancel()
|
||||
return
|
||||
}
|
||||
timer.Update()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue