<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>197147</bug_id>
          
          <creation_ts>2007-10-26 15:03 0000</creation_ts>
          <short_desc>net-proxy/squid-3.0_rc1 fails to resume downloads</short_desc>
          <delta_ts>2007-12-20 10:13:50 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>fedux@lugmen.org.ar</reporter>
          <assigned_to>net-proxy@gentoo.org</assigned_to>
          <cc>seventhguardian@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>fedux@lugmen.org.ar</who>
            <bug_when>2007-10-26 15:03:12 0000</bug_when>
            <thetext>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&apos;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
           =&gt; `linux-2.6.23.1.tar.bz2.2&apos;
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% [&gt;                                                                                                 ] 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
           =&gt; `linux-2.6.23.1.tar.bz2&apos;
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) =&gt; `linux-2.6.23.1.tar.bz2&apos;
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) =&gt; `linux-2.6.23.1.tar.bz2&apos;
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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-26 18:23:07 0000</bug_when>
            <thetext>Set yourself GENTOO_MIRRORS in make.conf; we don&apos;t have any control over upstream mirrors.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fedux@lugmen.org.ar</who>
            <bug_when>2007-10-26 19:37:35 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Set yourself GENTOO_MIRRORS in make.conf; we don&apos;t have any control over
&gt; upstream mirrors.
&gt; 

It was just an example, squid can&apos;t resume any file. Here&apos;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
           =&gt; `xorg-server-1.4.tar.gz&apos;
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% [=&gt;                                                                                                ] 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
           =&gt; `xorg-server-1.4.tar.gz&apos;
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) =&gt; `xorg-server-1.4.tar.gz&apos;
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) =&gt; `xorg-server-1.4.tar.gz&apos;
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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-26 19:41:36 0000</bug_when>
            <thetext>Duh... I completely misread this bug. I thought that you can&apos;t resume a download of squid tarball.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-10-28 21:38:49 0000</bug_when>
            <thetext>Bug confirmed. Please signal this bug upstream - see  http://www.squid-cache.org/bugs/enter_bug.cgi .
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fedux@lugmen.org.ar</who>
            <bug_when>2007-10-30 14:54:24 0000</bug_when>
            <thetext>Reported upstream, see:

http://www.squid-cache.org/bugs/show_bug.cgi?id=2116</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seventhguardian@gmail.com</who>
            <bug_when>2007-12-07 13:57:49 0000</bug_when>
            <thetext>Solved upstream. And squid-3.0 is out..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seventhguardian@gmail.com</who>
            <bug_when>2007-12-07 13:59:26 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; Solved upstream. And squid-3.0 is out..
&gt; 

Oh never mind, the &quot;squid-3.0&quot; is actually the rc1.. Only worth marking as solved when rc2 comes out.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-12-20 10:13:50 0000</bug_when>
            <thetext>Fixed in squid-3.0.1.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>