Ticket #14598 (closed defect: fixed)
wxHTTP doesn't block when sending big POST data
|Reported by:||Platonides||Owned by:|
I am POSTing files from a secondary thread and noticed that it didn't send the full data.
wxWidgets tried to post the full file, the send() syscall only partially accepted it and wxWidgets never passing them again. The webserver keeps waiting (due to the Content-Length being right) and finally the connection timeouts.
Simply adding wxSOCKET_WAITALL flag to the socket fixed it (src/common/http.c:391).