Erisa / cloudflared-docker

Simple Alpine-built scratch-runtime Dockerfile for cloudflared, with support for multiple architectures.
https://hub.docker.com/r/erisamoe/cloudflared
Other
158 stars 22 forks source link

UDP Receive Buffer Size #12

Closed lvnilesh closed 1 year ago

lvnilesh commented 1 year ago

I see this notice in the logs:

my-tunnel:  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.

The link recommends:

sysctl -w net.core.rmem_max=2500000

Does it make sense to incorporate this in your Dockerfile?

Erisa commented 1 year ago

That is a kernel option and cannot be changed per-container or at all from within a container without making it privileged (A bad idea) Even if it was ran within a privileged container, it would affect the entire system which may be undesirable behaviour.

Basically that command only works on the host and you should run it on your host if you want/need it to be done.