use correct value for MTU - sizeof(TCP header)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-01-18 23:00:06 +00:00
parent f8ebb70d6c
commit 1f73290186

View 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