[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


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

            Bug ID: 9981
           Summary: wget truncates non-SSL files in 1.26.2 (fine in
                    1.25.0)
           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
config:

https://github.com/LibreELEC/LibreELEC.tv/blob/b1f2b80882ff05c839853f8a0ae9d04dee4ce13c/packages/sysutils/busybox/config/busybox-target.conf

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

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

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 (163.172.166.199:80)

NUC:~ # echo $?
0
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
successfully:

NUC:~ # wget http://nmacleod.com/public/oebuild/test.tar
Connecting to nmacleod.com (212.23.8.80:80)
test.tar            100% |****************************************************|
 3010k  0:00:00 ETA
NUC:~ # echo $?
0
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:

https://github.com/mirror/busybox/commit/de3da6bf87a579a344b0581c6f2ce6a40166b432

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