On 01-Dec-23 02:32, Dmitry Karpov via curl-library wrote:
In my tests, I downloaded a 5 MB file from some local network server using different network speeds. The test client was running on Windows (mentioning it, just in case).
Random thought. Symptoms sound like different buffering. 5MB isn't all that big, what with all the buffering and today's network speeds. To get some clues: (a) is the deviation sensitive to file size? e.g., same deviation with 50MB? (b) do you see the same deviations from a Linux client? - if so, does strace show different setsockopt calls, perhaps setting buffer sizes? (c) Are you using the CURLOPT_WRITEFUNCTION? If so, is it getting the same 'nmemb' values? (if not, you can add one that does an fwrite() & log the nmemb values...) (d) If you enable VERBOSE and DEBUGFUNCTION and log to a (preallocated to minimize timing) memory buffer and print at exit, and the deviations don't go away: what's different in the log? (e) Does the actual elapsed time (measured by the OS/application) differ significantly? If so, it's not a timing measurement issue; rather it's a performance issue.
In all the above "different" means between libcurl versions. Timothe Litt ACM Distinguished Engineer -------------------------- This communication may not represent the ACM or my employer's views, if any, on the matters discussed.
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html