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:
@@ -184,11 +184,11 @@ public:
|
|||||||
// ctor initializes all the streams on top of the given socket
|
// ctor initializes all the streams on top of the given socket
|
||||||
//
|
//
|
||||||
// note that we use a bigger than default buffer size which matches the
|
// 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)
|
wxIPCSocketStreams(wxSocketBase& sock)
|
||||||
: m_socketStream(sock),
|
: m_socketStream(sock),
|
||||||
#ifdef USE_BUFFER
|
#ifdef USE_BUFFER
|
||||||
m_bufferedOut(m_socketStream, 1488),
|
m_bufferedOut(m_socketStream, 1448),
|
||||||
#else
|
#else
|
||||||
m_bufferedOut(m_socketStream),
|
m_bufferedOut(m_socketStream),
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user