]> git.saurik.com Git - wxWidgets.git/commitdiff
use correct value for MTU - sizeof(TCP header)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Jan 2009 23:00:06 +0000 (23:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Jan 2009 23:00:06 +0000 (23:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sckipc.cpp

index 2e860b6d79a957a00c822d3ccd3e5d97b991f5ff..0aed548807c1c1d39fd73548b459183eb4965679 100644 (file)
@@ -184,11 +184,11 @@ public:
     // ctor initializes all the streams on top of the given socket
     //
     // note that we use a bigger than default buffer size which matches the
-    // typical Ethernet MTU
+    // typical Ethernet MTU (minus TCP header overhead)
     wxIPCSocketStreams(wxSocketBase& sock)
         : m_socketStream(sock),
 #ifdef USE_BUFFER
-          m_bufferedOut(m_socketStream, 1488),
+          m_bufferedOut(m_socketStream, 1448),
 #else
           m_bufferedOut(m_socketStream),
 #endif