-
What's the header size for wss? I don't want all together to be more than 1500. |
Beta Was this translation helpful? Give feedback.
Answered by
erebe
Sep 15, 2024
Replies: 1 comment 2 replies
-
it depends on the data length you forward. If you want to forward udp traffic, as it will be <1500 bytes, the overhead of websocket is 3 bytes. But you also need to account for TLS which is 5bytes. So for udp websocket + TLS should be 8 bytes of overhead. You can set your MTU to 1450 to be safe. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
cornzzy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it depends on the data length you forward.
it can vary from 2 to 9 bytes (if you let the default and don't enable masking frame).
If you want to forward udp traffic, as it will be <1500 bytes, the overhead of websocket is 3 bytes.
But you also need to account for TLS which is 5bytes.
So for udp websocket + TLS should be 8 bytes of overhead.
You can set your MTU to 1450 to be safe.