Open xieyuschen opened 2 years ago
The warning information when run the echo demo on ubuntu20.04.
2022/06/02 00:36:17 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size. Can use sysctl -w net.core.rmem_max=2500000 to solve. This command would increase the maximum receive buffer size to roughly 2.5 MB.
sysctl -w net.core.rmem_max=2500000
The warning information when run the echo demo on ubuntu20.04.