An upload buffer is filled by a callback set with CURLOPT_READFUNCTION, and the callback is called 16 times to fill 1 MiB of data to be uploaded. On libcurl version 7.71.0 it takes about a second between every callback function calls, and results in more than 10 seconds to complete.
I did this
Compiled and ran the following code:
An upload buffer is filled by a callback set with
CURLOPT_READFUNCTION
, and the callback is called 16 times to fill 1 MiB of data to be uploaded. On libcurl version 7.71.0 it takes about a second between every callback function calls, and results in more than 10 seconds to complete.I expected the following
On version 7.70.0 and earlier it finishes almost instantly.
curl/libcurl version
libcurl version 7.71.0, a commit 8bc25c5 and later
operating system
Tested on Windows 10 1909 build 18363.904, the test code is built with i686-w64-mingw32-gcc.
Windows only issue, not affected on other platforms.
The text was updated successfully, but these errors were encountered: