From 6cd0974803e2fb7453e93b46414134456689e3da Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 27 Oct 2015 01:37:23 +0100 Subject: [PATCH] Updated comments --- .../src/dorkbox/network/connection/EndPoint.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dorkbox-Network/src/dorkbox/network/connection/EndPoint.java b/Dorkbox-Network/src/dorkbox/network/connection/EndPoint.java index 3c1001eb..2fa0b823 100644 --- a/Dorkbox-Network/src/dorkbox/network/connection/EndPoint.java +++ b/Dorkbox-Network/src/dorkbox/network/connection/EndPoint.java @@ -103,10 +103,16 @@ class EndPoint { * truncate and IPv6 routers drop a large packet. That's why it is * safe to send small packets in UDP. *

- * 512 is recommended to prevent fragmentation. - * This can be set higher on an internal lan! (or use UDT to make UDP transfers easy) + * To fit into that magic 576-byte MTU and avoid fragmentation, your + * UDP payload should be restricted by 576-60-8=508 bytes. + * + * This can be set higher on an internal lan! (or use UDT to make UDP + * transfers easy) + * + * DON'T go higher that 1400 over the internet, but 9k is possible + * with jumbo frames on a local network (if it's supported) */ - public static int udpMaxSize = 512; + public static int udpMaxSize = 508; static {