]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
atsu for textctrl
[wxWidgets.git] / src / common / socket.cpp
index e90a3b7cb57f95bdd4f687691dc49200e70d1128..203d79a063ee15f2f94fd29dfa31f47b820d7c9b 100644 (file)
@@ -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);