Discussion:
Is my "Time Spent" erroneous?
d***@mail.com
2017-11-24 04:35:40 UTC
Permalink
On Date: Fri, 6 Oct 2017 02:12:37 -0400,
Hello,
#!/bin/bash
for i in 1 2 3 4 5
do
date && curl -o test
http://mirror.exetel.com.au/pub/gentoo/distfiles/shominst-0409.zip
done
is
Sat Sep 16 11:45:20 AEST 2017
% Total % Received % Xferd Average Speed Time Time Time
Current Dload Upload Total Spent Left Speed
100 9743k 100 9743k 0 0 2321 0 1:11:38 1:11:38
--:--:-- 2695k Sat Sep 16 11:45:24 AEST 2017
% Total % Received % Xferd Average Speed Time Time Time
Current Dload Upload Total Spent Left Speed
100 9743k 100 9743k 0 0 2321 0 1:11:38 1:11:38
--:--:-- 2670k Sat Sep 16 11:45:28 AEST 2017
% Total % Received % Xferd Average Speed Time Time Time
Current Dload Upload Total Spent Left Speed
100 9743k 100 9743k 0 0 3247k 0 0:00:03 0:00:03
--:--:-- 2646k Sat Sep 16 11:45:31 AEST 2017
% Total % Received % Xferd Average Speed Time Time Time
Current Dload Upload Total Spent Left Speed
100 9743k 100 9743k 0 0 2321 0 1:11:38 1:11:38
--:--:-- 2662k Sat Sep 16 11:45:35 AEST 2017
% Total % Received % Xferd Average Speed Time Time Time
Current Dload Upload Total Spent Left Speed
100 9743k 100 9743k 0 0 2321 0 1:11:38 1:11:38
--:--:-- 2662k
Note how the "Time Spent" varies apparently randomly from a factual 3
seconds to 1:11:38. Anyone know why?
Thanks.
https://forums.gentoo.org/viewtopic.php?p=8118520#8118520
# curl -V
curl 7.55.1 (x86_64-pc-linux-gnu) libcurl/7.55.1 OpenSSL/1.0.2l
zlib/1.2.11
Release-Date: 2017-08-14
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s
rtsp smtp smtps telnet tftp
Features: Largefile NTLM SSL libz TLS-SRP UnixSockets HTTPS-proxy
Can someone else try to reproduce this?
I'd like to but I'm experiencing some down time (laptop died and I'm
stuck with a tether for Internet), and I'm not certain how exactly curl
was compiled.

Tap, Tap, Tap.
Ian, does this look correct?

configure --enable-optimize --enable-warnings --disable-symbol-hiding
--enable-http --enable-ftp --enable-file --disable-ldap --disable-ldaps
--enable-rtsp --enable-proxy --enable-dict --enable-telnet --enable-tftp
--enable-pop3 --enable-imap --disable-smb --enable-smtp --enable-gopher
--enable-manual --enable-ipv6 --enable-libgcc --enable-threaded-resolver
--enable-pthreads --enable-verbose --disable-sspi --enable-crypto-auth
--enable-ntlm-wb --enable-tls-srp --enable-unix-sockets --enable-cookies
--with-pic --with-gnu-ld --with-zlib --without-gssapi --without-winssl
--without-darwinssl --with-ssl --without-gnutls --without-polarssl
--without-mbedtls --without-cyassl --without-nss --without-axtls
--without-libmetalink --without-libssh2 --without-librtmp
--without-winidn --without-libidn2 --without-nghttp2
--without-zsh-functions-dir

Sincerely,
David



-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.
Daniel Stenberg
2017-11-24 07:24:51 UTC
Permalink
Note how the "Time Spent" varies apparently randomly from a factual 3
seconds to 1:11:38. Anyone know why?
I'd like to but I'm experiencing some down time (laptop died and I'm stuck
with a tether for Internet), and I'm not certain how exactly curl was
compiled.
I'm pretty sure this weird time was the result of one of the 'time_t'
regressions in lib/timeval.c that we've subsequently fixed. As the forum post
[*] accurately points out, 1:11:38 is basically 2^32 microseconds.

If this issue can be reproduced using 7.56.1 or git master I'd be most
interested, but I feel pretty certain this is already fixed.

[*] = https://forums.gentoo.org/viewtopic.php?p=8118520#8118520
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.h
Loading...