Files
clash-meta/common/pool/buffer_standard.go
2025-06-10 10:54:08 +08:00

15 lines
329 B
Go

//go:build !with_low_memory
package pool
const (
// RelayBufferSize using for tcp
// io.Copy default buffer size is 32 KiB
RelayBufferSize = 32 * 1024
// UDPBufferSize using for udp
// Most UDPs are smaller than the MTU, and the TUN's MTU
// set to 9000, so the UDP Buffer size set to 16Kib
UDPBufferSize = 16 * 1024
)