Updated comments
This commit is contained in:
parent
2b50a19701
commit
6cd0974803
@ -103,10 +103,16 @@ class EndPoint<C extends Connection> {
|
|||||||
* truncate and IPv6 routers drop a large packet. That's why it is
|
* truncate and IPv6 routers drop a large packet. That's why it is
|
||||||
* safe to send small packets in UDP.
|
* safe to send small packets in UDP.
|
||||||
* <p/>
|
* <p/>
|
||||||
* 512 is recommended to prevent fragmentation.
|
* To fit into that magic 576-byte MTU and avoid fragmentation, your
|
||||||
* This can be set higher on an internal lan! (or use UDT to make UDP transfers easy)
|
* 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 {
|
static {
|
||||||
|
Loading…
Reference in New Issue
Block a user