|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1603712 ] curl 7.16-0 now use "limit rate" badly
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 03 Jan 2007 02:00:02 -0800
Bugs item #1603712, was opened at 2006-11-27 13:28
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
When i use "--limit-rate" in 7-16.0 this function crash/stops software when speed is equal or is more value i choose
========> choose 5K as value and software stops, choose 5000M and software do not stop !!! <========
bug are not been detected in 7.15.5 because the package is not present in curl archive packs ;)
my config XP SP2 100% patched French version
----------------------------------------------------------------------
>Comment By: Sebastien WILLEMIJNS (sebone)
Message:
done...
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
Thank you, 20070103 snapshot works for me.
Sebastien, could you look at it so that the ticked could be closed?
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Fix committed just now. I noticed we already had the work-around I
Let me know if you find any problems with this.
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
Hmm, indeed, I see even stronger claim:
"... select() function _shall_ block for the time specified."
So your solution seems the most reasonable.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
According to POSIX, select() _should_ wait that timeout if the arguments
usleep() is not universerally available
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
The problem is, select doesn't wait a timeout if it sees that arguments
We may have to use Sleep() on win32, and usleep() on POSIX-systems. Should
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
If I replace code (Sleep with select) as you said, curl appears to still
If make the code affected by patch to look as follows:
timeout.tv_sec = timeout_ms / 1000;
#ifdef WIN32
... then curl again fetches just the first chunk of the file.
----------------------------------------------------------------------
Comment By: Sebastien WILLEMIJNS (sebone)
Message:
please ask me when this win32 patch will be added 4 test at home even in
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Yes it would have to always return 0 after the select(). The benefit with
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
If I replace code (Sleep with select) as you said, curl appears to still
If make the code affected by patch to look as follows:
timeout.tv_sec = timeout_ms / 1000;
#ifdef WIN32
... then curl again fetches just the first chunk of the file.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
FreeBSD you say.
Hm, so out of curiosity does windows "do right" if you instead of the
select(0, NULL, NULL, NULL, &timeout);
Move the timeout calculation to before the conditional too. This select
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
Yes, it fixes the problem for win32.
The comment is a bit misleading, though: I have tested select() on
So, if there are other platforms with select but not poll available, curl
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Thanks for your info and help.
Does the attached patch below solve the problem then? (It makes
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
Some additional notes:
----------------------------------------------------------------------
Comment By: vvs (victor_snezhko)
Message:
I also experience this problem.
BTW, in this case Transfer() returns CURLE_OK, and error doesn't propagate
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Follow-up from the curl-users mailing list discussion: this clearly breaks
Someone with a debugger (or similar) on windows would need to set a few
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
re-opened since Sebastien still experience connection closes
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Message:
please reopen this bug :-(
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
I fixed the limit-rate problem that made it not limiting the rate
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
(for the sake of keeping info in this report as well) --limit-rate is
http://curl.haxx.se/mail/archive-2006-11/0135.html
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info