curl-users
"Re: speed-time / speed-limit not work & manual page and help page say oppostite switch use?"
Date: Sat, 12 Oct 2002 20:31:26 +0100
Daniel,
I tried some other URL's of much larger pages I could test easily, they did time out...
but seems the issue is rather with the interpretation of a 1 second timeout(below) not being 1 second.
Maybe due to the sample time lengths the speed is calculated on being longer than a second?
$ curl -o /dev/null -y 1 -Y 99999999999 http://msdn.microsoft.com/sitemap/default.asp
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
70 31046 70 22030 0 0 7042 0 0:00:04 0:00:03 0:00:01 8843
curl: (28) Operation too slow. Less than 2147483647 bytes/sec transfered the last 1 seconds
So I concede it does work but not quite as I expected !
Is there a possibility to make the timeout start at maybe 1/10 of a second?
Thanks very much for such a quick response,
Rich
On Fri, 11 Oct 2002, RiCH wrote:
> According to man page (curl -M)
curl -M actually shows both the man page and the docs/MANUAL combined.
> To have curl abort the download if the speed is slower than 3000 bytes per
> second for 1 minute, run: "curl -y 3000 -Y 60 www.far-away-site.com"
That's a mixup, yes. It should be -Y 3000 -y 60, and I've corrected this now.
> So i try
> curl -y 1 -Y 9999999 www.far-away-site.com
Really? I tried it too just now:
$ curl ftp.sunet.se/ls-lR -o /dev/null -y 2 -Y 1000000
[progress meter display cut out]
curl: (28) Operation too slow. Less than 1000000 bytes/sec transfered the
last 2 seconds
> Why are the switches back to front? , which is correct ?
As shown above.
> Does it not work or am I missing somehting obvious?
Works For Me (tm). Weirdly enough...
> Any other ways to achieve my solution? (cannot use -m as connection is slow
> etc and can timeout b4 form POSTs correctly)
I would be perfect if you could come up with a reproducable way to repeat
this problem, so that others too can see it happen as then it'll be a piece
of cake to debug and fix once and for all and it'll be much rejoicing.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-12