fix udp connection timeout

This commit is contained in:
ginuerzh
2024-08-06 18:33:29 +08:00
parent 5e8a8a4b4d
commit 22e522e933
9 changed files with 30 additions and 24 deletions

View File

@ -78,7 +78,7 @@ func (*defaultRoute) Bind(ctx context.Context, network, address string, opts ...
ReadQueueSize: options.UDPDataQueueSize,
ReadBufferSize: options.UDPDataBufferSize,
TTL: options.UDPConnTTL,
KeepAlive: true,
Keepalive: true,
Logger: logger,
})
return ln, err