Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197147 - net-proxy/squid-3.0_rc1 fails to resume downloads
Summary: net-proxy/squid-3.0_rc1 fails to resume downloads
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 15:03 UTC by Federico Cuello
Modified: 2007-12-20 10:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Cuello 2007-10-26 15:03:12 UTC
Squid succesfully downloads a complete file, but if the download is stopped and then resumed it fails to continue. I tested it with different webclients (wget, curl). Also the resuming works if I don't use proxy.

Reproducible: Always

Steps to Reproduce:
1. wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.1.tar.bz2
--12:02:17--  http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.1.tar.bz2
           => `linux-2.6.23.1.tar.bz2.2'
Resolving genfw.integratech.net... 192.168.1.1
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 45,477,128 (43M) [application/x-bzip2]

 1% [>                                                                                                 ] 478,567       95.74K/s    ETA 08:22

2. wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.1.tar.bz2
--12:02:44--  http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.1.tar.bz2
           => `linux-2.6.23.1.tar.bz2'
Resolving genfw.integratech.net... 192.168.1.1
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 206 Partial Content
Length: 45,477,128 (43M), 44,808,761 (43M) remaining [application/x-bzip2]

 1% [+                                                                                                 ] 668,367       --.--K/s

12:02:44 (0.00 B/s) - Connection closed at byte 668367. Retrying.

--12:02:45--  http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.1.tar.bz2
  (try: 2) => `linux-2.6.23.1.tar.bz2'
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 206 Partial Content
Length: 45,477,128 (43M), 44,808,761 (43M) remaining [application/x-bzip2]

 1% [+                                                                                                 ] 668,367       --.--K/s

12:02:45 (0.00 B/s) - Connection closed at byte 668367. Retrying.

--12:02:47--  http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.1.tar.bz2
  (try: 3) => `linux-2.6.23.1.tar.bz2'
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 206 Partial Content
Length: 45,477,128 (43M), 44,808,761 (43M) remaining [application/x-bzip2]

 1% [+                                                                                                 ] 668,367       --.--K/s

12:02:48 (0.00 B/s) - Connection closed at byte 668367. Retrying.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 18:23:07 UTC
Set yourself GENTOO_MIRRORS in make.conf; we don't have any control over upstream mirrors.
Comment 2 Federico Cuello 2007-10-26 19:37:35 UTC
(In reply to comment #1)
> Set yourself GENTOO_MIRRORS in make.conf; we don't have any control over
> upstream mirrors.
> 

It was just an example, squid can't resume any file. Here's another example:

1. wget http://xorg.freedesktop.org/archive/X11R7.3/src/xserver/xorg-server-1.4.tar.gz
--16:33:20--  http://xorg.freedesktop.org/archive/X11R7.3/src/xserver/xorg-server-1.4.tar.gz
           => `xorg-server-1.4.tar.gz'
Resolving genfw.integratech.net... 192.168.1.1
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 8,189,388 (7.8M) [application/x-gzip]

 2% [=>                                                                                                ] 189,405       59.56K/s    ETA 02:11

2. Then I cancelled the download (ctrl-c)

3. Trying to resume:
wget -c http://xorg.freedesktop.org/archive/X11R7.3/src/xserver/xorg-server-1.4.tar.gz
--16:33:27--  http://xorg.freedesktop.org/archive/X11R7.3/src/xserver/xorg-server-1.4.tar.gz
           => `xorg-server-1.4.tar.gz'
Resolving genfw.integratech.net... 192.168.1.1
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 206 Partial Content
Length: 8,189,388 (7.8M), 7,983,923 (7.6M) remaining [application/x-gzip]

 2% [++                                                                                                ] 205,465       --.--K/s

16:33:28 (0.00 B/s) - Connection closed at byte 205465. Retrying.

--16:33:29--  http://xorg.freedesktop.org/archive/X11R7.3/src/xserver/xorg-server-1.4.tar.gz
  (try: 2) => `xorg-server-1.4.tar.gz'
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 206 Partial Content
Length: 8,189,388 (7.8M), 7,983,923 (7.6M) remaining [application/x-gzip]

 2% [++                                                                                                ] 205,465       --.--K/s

16:33:29 (0.00 B/s) - Connection closed at byte 205465. Retrying.

--16:33:31--  http://xorg.freedesktop.org/archive/X11R7.3/src/xserver/xorg-server-1.4.tar.gz
  (try: 3) => `xorg-server-1.4.tar.gz'
Connecting to genfw.integratech.net|192.168.1.1|:3128... connected.
Proxy request sent, awaiting response... 206 Partial Content
Length: 8,189,388 (7.8M), 7,983,923 (7.6M) remaining [application/x-gzip]

 2% [++                                                                                                ] 205,465       --.--K/s

16:33:32 (0.00 B/s) - Connection closed at byte 205465. Retrying.

I sniffed the connection and squid is sending a FIN packet after receiving some data.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 19:41:36 UTC
Duh... I completely misread this bug. I thought that you can't resume a download of squid tarball.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2007-10-28 21:38:49 UTC
Bug confirmed. Please signal this bug upstream - see  http://www.squid-cache.org/bugs/enter_bug.cgi .
Comment 5 Federico Cuello 2007-10-30 14:54:24 UTC
Reported upstream, see:

http://www.squid-cache.org/bugs/show_bug.cgi?id=2116
Comment 6 Renato Caldas 2007-12-07 13:57:49 UTC
Solved upstream. And squid-3.0 is out..
Comment 7 Renato Caldas 2007-12-07 13:59:26 UTC
(In reply to comment #6)
> Solved upstream. And squid-3.0 is out..
> 

Oh never mind, the "squid-3.0" is actually the rc1.. Only worth marking as solved when rc2 comes out.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2007-12-20 10:13:50 UTC
Fixed in squid-3.0.1.