X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4252569b32b95d0d0ed89c956d935bdab8f178dd..bab4b13d392e0c9663c2c5a09f0dcbc77344ec05:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index e90a3b7cb5..203d79a063 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -1303,6 +1303,10 @@ bool wxSocketClient::DoConnect(wxSockAddress& addr_man, wxSockAddress* local, bo m_socket->SetLocal(la); } +#if defined(__WXMSW__) || defined(__WXGTK__) + m_socket->SetInitialSocketBuffers(m_initialRecvBufferSize, m_initialSendBufferSize); +#endif + m_socket->SetPeer(addr_man.GetAddress()); err = m_socket->Connect(GSOCK_STREAMED);