X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c84ef5b9f71ea2a62daa6d70840a8d654fc0103d..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/common/http.cpp?ds=inline diff --git a/src/common/http.cpp b/src/common/http.cpp index f041115be9..f70b6fe9da 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -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;