Skip to content

Increase UDP Receive Buffer Size #1964

@brenner-tobias

Description

@brenner-tobias

Describe the issue you are experiencing

Since the cloudflared tunnel connection default protocol changed from http2 to quic, an error is occuring that is linked to the UDP Receive Buffer Size: failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 58 kiB).

Now looking into quick, it is recommended to increase the UDP buffer size by running (see here):

sysctl -w net.core.rmem_max=2500000

We can do that on our local installations, but the setting is not persisted after reboots. Therfor, I suggest to generally increase this buffer size.

What operating system image do you use?

rpi4-64 (Raspberry Pi 4/400 64-bit OS)

What version of Home Assistant Operating System is installed?

8.1

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Install Cloudflared add-on
  2. Configure it with the Cloudflare managed Tunnel
  3. Check the add-on logs

Anything in the Supervisor logs that might be useful for us?

2022/04/29 18:30:50 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 58 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.

Anything in the Host logs that might be useful for us?

none

System Health information

No response

Additional information

Issue is also addressed in detail in the add-on repository.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions