1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-03 01:38:24 -04:00

Feat: increase idle timeout to 300s for udp split (#1903)

This commit is contained in:
秋のかえで 2022-08-19 20:12:30 +08:00 committed by GitHub
parent 8f883040ab
commit 05df03edc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ func (v *Dispatcher) getInboundRay(ctx context.Context, dest net.Destination) *c
cancel() cancel()
v.RemoveRay(dest) v.RemoveRay(dest)
} }
timer := signal.CancelAfterInactivity(ctx, removeRay, time.Second*4) timer := signal.CancelAfterInactivity(ctx, removeRay, time.Second*300)
link, _ := v.dispatcher.Dispatch(ctx, dest) link, _ := v.dispatcher.Dispatch(ctx, dest)
entry := &connEntry{ entry := &connEntry{
link: link, link: link,