Author: toad
Date: 2006-11-15 20:25:39 +0000 (Wed, 15 Nov 2006)
New Revision: 10940
Modified:
trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
Log:
1400-28. And explain _WHY_!
Modified: trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketManager.java 2006-11-15
19:57:37 UTC (rev 10939)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketManager.java 2006-11-15
20:25:39 UTC (rev 10940)
@@ -637,6 +637,12 @@
* @return The maximum packet size supported by this SocketManager.
*/
public int getMaxPacketSize() {
- return 1476-(20+8); // 1476 = GRE, minus IP headers (20), minus UDP
headers (8)
+ /**
+ * 28 bytes for UDP/IP.
+ * WinXP maximum for PPTP is 1400. Subtract 28 to get the MSS.
+ * Did consider 1476 (GRE) minus 28, but this will cause trouble for
many VPN users.
+ * Of course, some VPN users have under 1000, but we can't please
everyone!
+ */
+ return 1400-28;
}
}