]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
wxLaunchDefaultBrowser messages should be localized
[wxWidgets.git] / src / common / socket.cpp
index e90a3b7cb57f95bdd4f687691dc49200e70d1128..825901734d8fec9c43594f07c9020900862881de 100644 (file)
@@ -37,9 +37,9 @@
 #endif
 
 #include "wx/apptrait.h"
-
 #include "wx/sckaddr.h"
 #include "wx/stopwatch.h"
+#include "wx/thread.h"
 
 // DLL options compatibility check:
 #include "wx/build.h"
@@ -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);