Browse Source

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

秋のかえで 3 years ago
parent
commit
05df03edc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/internet/udp/dispatcher_split.go

+ 1 - 1
transport/internet/udp/dispatcher_split.go

@@ -69,7 +69,7 @@ func (v *Dispatcher) getInboundRay(ctx context.Context, dest net.Destination) *c
 		cancel()
 		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)
 	entry := &connEntry{
 		link:   link,