[Hackage] #562: cabal-install update fails going through a HTTP proxy (but not consistently)

Hackage trac at galois.com
Fri Sep 18 09:40:59 EDT 2009


#562: cabal-install update fails going through a HTTP proxy (but not
consistently)
----------------------------+-----------------------------------------------
  Reporter:  acid2          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.6.0.1
  Severity:  normal         |   Resolution:         
  Keywords:                 |   Difficulty:  unknown
Ghcversion:                 |     Platform:         
----------------------------+-----------------------------------------------
Comment (by vvv):

 I have some news. First, there is a
 [http://hpaste.org/fastcgi/hpaste.fcgi/view?id=9447#a9488 proof of
 concept] module manifesting this weird behaviour. Second, the problem
 seems to be caused by using `Lazy.ByteString` for HTTP response body (see
 `getHTTP` function in Distribution.Client.!HttpUtils). Once it's replaced
 with strict !ByteString, the [POC] module starts downloading complete
 files.

 Please see my [http://trac.haskell.org/http/ticket/8#comment:6 comment to
 HTTP ticket#8] and consider replacing Lazy.!ByteString's with strict ones
 where appropriate (!HttpUtils.hs, Fetch.hs, ...?).

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/562#comment:9>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list