[Bug 5426] wget hangs in call to poll() if progress meter or timeout support is enabled and HTTP chunked encoding is used

bugzilla at busybox.net bugzilla at busybox.net
Sun Sep 2 16:27:31 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=5426

--- Comment #4 from Denys Vlasenko <vda.linux at googlemail.com> 2012-09-02 16:27:30 UTC ---
(In reply to comment #3)
> I have tried the fix and it stops wget from stalling. However, it is very slow.
> Retrieving a small file, which should be completed within a fraction of a
> second sometimes takes several seconds.

The delay caused by additional poll(1000) can be one second maximum.

> Basically, I think you need to arrange the code in such a way that you are sure
> that the fread() buffer is empty before you call poll().

How can I know that the buffer is not empty? IIRC stdio.h doesn't provide
mechanisms for knowing that.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list