]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/http.cpp
Add missing WXK constants for the control keys
[wxWidgets.git] / src / common / http.cpp
index f041115be962b2399dc08e69636c1043b72bd2b2..f70b6fe9da41c3e874985d8e8315e1039c08fa61 100644 (file)
@@ -388,8 +388,11 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
     SaveState();
 
     // we may use non blocking sockets only if we can dispatch events from them
-    SetFlags( wxIsMainThread() && wxApp::IsMainLoopRunning() ? wxSOCKET_NONE
-                                                             : wxSOCKET_BLOCK );
+    int flags = wxIsMainThread() && wxApp::IsMainLoopRunning() ? wxSOCKET_NONE
+                                                               : wxSOCKET_BLOCK;
+    // and we must use wxSOCKET_WAITALL to ensure that all data is sent
+    flags |= wxSOCKET_WAITALL;
+    SetFlags(flags);
     Notify(false);
 
     wxString buf;