Hello!
I have encountered strange bug on Linux when wxWebRequestEvent::GetState() == wxWebRequest::State_Completed, but file is downloaded partially. This reproduces quickly if your internet connection is poor.
In application I now avoid this bug with check for wxWebRequestEvent::GetResponse().GetContentLength() == wxWebRequestEvent::GetRequest().GetBytesReceived(). If file is downloaded partially => condition is not true.
But expected result is wxWebRequestEvent::GetState() == wxWebRequest::State_Failed. Presumably, we need to check for data transfer error in wxWebSessionCURL::CheckForCompletedTransfers().
https://github.com/wxWidgets/wxWidgets/pull/26286
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Looks good, thanks! I'll apply this soon.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()