Attempting to download a file larger than 2GB using cntlm on Precise fails.
Example: $ wget http://cdimage.ubuntu.com/edubuntu/dvd/current/quantal-dvd-amd64.iso --2012-07-31 16:28:13-- http://cdimage.ubuntu.com/edubuntu/dvd/current/quantal-dvd-amd64.iso Connecting to 127.0.0.1:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 3028086784 (2,8G) [application/x-iso9660-image] Saving to: `quantal-dvd-amd64.iso'
0% [ ] 0 --.-K/s in 0s
2012-07-31 16:28:16 (0,00 B/s) - Connection closed at byte 0. Retrying.
--2012-07-31 16:28:17-- (try: 2) http://cdimage.ubuntu.com/edubuntu/dvd/current/quantal-dvd-amd64.iso Connecting to 127.0.0.1:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 3028086784 (2,8G) [application/x-iso9660-image] Saving to: `quantal-dvd-amd64.iso'
2012-07-31 16:28:18 (0,00 B/s) - Connection closed at byte 0. Retrying.
Running cntlm with debugging information (cntlm -v), shows that the data length is interpreted as a negative number:
Content-Length => 3028086784 Date => Tue, 31 Jul 2012 15:27:41 GMT Content-Type => application/x-iso9660-image ETag => "2760bfb-b47cf000-4c616386b9f40" Server => Apache/2.2.14 (Ubuntu) Accept-Ranges => bytes Last-Modified => Tue, 31 Jul 2012 01:37:25 GMT Sending headers (5)... Body included. Lenght: -1266880512 data_send: read -1 of -1266880512 / 0 of -1266880512 (errno = Bad address) data_send: fds 5:6 warning -1 (connection closed) Could not send whole body
Attempting to download a file larger than 2GB using cntlm on Precise fails.
Example: cdimage. ubuntu. com/edubuntu/ dvd/current/ quantal- dvd-amd64. iso cdimage. ubuntu. com/edubuntu/ dvd/current/ quantal- dvd-amd64. iso x-iso9660- image] dvd-amd64. iso'
$ wget http://
--2012-07-31 16:28:13-- http://
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3028086784 (2,8G) [application/
Saving to: `quantal-
0% [ ] 0 --.-K/s in 0s
2012-07-31 16:28:16 (0,00 B/s) - Connection closed at byte 0. Retrying.
--2012-07-31 16:28:17-- (try: 2) http:// cdimage. ubuntu. com/edubuntu/ dvd/current/ quantal- dvd-amd64. iso x-iso9660- image] dvd-amd64. iso'
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3028086784 (2,8G) [application/
Saving to: `quantal-
0% [ ] 0 --.-K/s in 0s
2012-07-31 16:28:18 (0,00 B/s) - Connection closed at byte 0. Retrying.
Running cntlm with debugging information (cntlm -v), shows that the data length is interpreted as a negative number:
Content-Length => 3028086784 x-iso9660- image b47cf000- 4c616386b9f40"
Date => Tue, 31 Jul 2012 15:27:41 GMT
Content-Type => application/
ETag => "2760bfb-
Server => Apache/2.2.14 (Ubuntu)
Accept-Ranges => bytes
Last-Modified => Tue, 31 Jul 2012 01:37:25 GMT
Sending headers (5)...
Body included. Lenght: -1266880512
data_send: read -1 of -1266880512 / 0 of -1266880512 (errno = Bad address)
data_send: fds 5:6 warning -1 (connection closed)
Could not send whole body