[Hackage] #572: cabal update download too short when through privoxy

#572: cabal update download too short when through privoxy ---------------------------------+------------------------------------------ Reporter: wolverian | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: Linux | ---------------------------------+------------------------------------------ I have a Privoxy proxy running on localhost, set in the $http_proxy env var. Running cabal update gets a partial 00-index.tar.gz file: {{{ wolverian@pupupu:~ (master)$ cabal update -v3 Downloading the latest package list from hackage.haskell.org Sending: GET /packages/archive/00-index.tar.gz HTTP/1.1 User-Agent: cabal-install/0.6.2 Host: hackage.haskell.org proxy uri host: 127.0.0.1, port: :8118 Creating new connection to 127.0.0.1:8118 Received: HTTP/1.1 200 OK Date: Mon, 03 Aug 2009 14:10:46 GMT Server: Apache/2.2.3 (Debian) Last-Modified: Mon, 03 Aug 2009 13:56:03 GMT ETag: "595494-111c43-216dc2c0" Accept-Ranges: bytes Content-Length: 1121347 Connection: close Content-Type: application/x-tar Content-Encoding: x-gzip Downloaded to /home/wolverian/.cabal/packages/hackage.haskell.org/00-index.tar.gz cabal: user error (Codec.Compression.Zlib: premature end of compressed stream) }}} The resulting file is 1078 bytes. Running wget on the file gives: {{{ wolverian@pupupu:~ (master)$ LANG=C wget --server-response hackage.haskell.org/packages/archive/00-index.tar.gz --2009-08-03 17:12:26-- http://hackage.haskell.org/packages/archive/00-index.tar.gz Connecting to 127.0.0.1:8118... connected. Proxy request sent, awaiting response... HTTP/1.1 200 OK Date: Mon, 03 Aug 2009 14:12:26 GMT Server: Apache/2.2.3 (Debian) Last-Modified: Mon, 03 Aug 2009 13:56:03 GMT ETag: "595494-111c43-216dc2c0" Accept-Ranges: bytes Content-Length: 1121347 Connection: close Content-Type: application/x-tar Content-Encoding: x-gzip Length: 1121347 (1.1M) [application/x-tar] Saving to: `00-index.tar.gz.3' 100%[===================================>] 1,121,347 84.8K/s in 12s 2009-08-03 17:12:38 (90.4 KB/s) - `00-index.tar.gz.3' saved [1121347/1121347] }}} The file is downloaded correctly. Versions: cabal-install is 0.6.2, Cabal is 1.6.0.2, and I have HTTP version 4000.0.7 installed, though I am not sure if that is the one cabal- install is compiled against. GHC is 6.10.3. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/572 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#572: cabal update download too short when through privoxy ---------------------------------+------------------------------------------ Reporter: wolverian | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: duplicate Keywords: | Difficulty: unknown Ghcversion: | Platform: Linux ---------------------------------+------------------------------------------ Changes (by vvv): * status: new => closed * resolution: => duplicate Comment: This problem is already reported; see #562. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/572#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage