[Bug 9981] New: wget truncates non-SSL files in 1.26.2 (fine in 1.25.0)

bugzilla at busybox.net bugzilla at busybox.net
Wed Jun 21 21:37:13 UTC 2017


            Bug ID: 9981
           Summary: wget truncates non-SSL files in 1.26.2 (fine in
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Networking
          Assignee: unassigned at busybox.net
          Reporter: busybox at nmacleod.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

We are building busybox 1.26.2 (upgrading from 1.25.0) with the following


and have found that wget in 1.26.2 now fails to download the following 3MB file
over http:


The same file with 1.25.0 will download correctly.

With 1.26.2 if you run:

wget http://milhouse.libreelec.tv/other/test.tar

it will appear to succeed but will only download 28KB (first chunk?) and not
the full 3MB, and there will be no progress indicator. The exit code will be 0.

For example:

NUC:~ # wget http://milhouse.libreelec.tv/other/test.tar
Connecting to milhouse.libreelec.tv (

NUC:~ # echo $?
NUC:~ # ls -la test.tar
-rw-r--r--    1 root     root         27872 Jun 21 21:40 test.tar

Strangely, the same 3MB file from a different server WILL download

NUC:~ # wget http://nmacleod.com/public/oebuild/test.tar
Connecting to nmacleod.com (
test.tar            100% |****************************************************|
 3010k  0:00:00 ETA
NUC:~ # echo $?
NUC:~ # ls -la test.tar
-rw-r--r--    1 root     root       3082240 Jun 21 21:55 test.tar

After bisecting the commits I have determined that with the following Busybox
commit reverted:


the wget command will download the entire
http://milhouse.libreelec.tv/other/test.tar file successfully, as expected.

Can anyone advise why wget is behaving this way when downloading from the first
server, when Busybox 1.25.0 has no problems downloading from the same server?
Is this something new in 1.26.0 that I have omitted, or is this a bug?

Many thanks.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the busybox-cvs mailing list