Cabal-Install Update Problems

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Jul 28 09:37:52 EDT 2008


On Sun, 2008-07-27 at 20:45 -0500, Jeff Wheeler wrote:
> On Jul 26, 2008, at 12:25 AM, Jeff Wheeler wrote:
> 
> > That makes sense, but unfortunately I don't think I'm getting much  
> > useful information from the verbose version:
> >
> > Daedalus:Downloads jeff$ cabal update -v3
> > Downloading package list from server
> > 'http://hackage.haskell.org/packages/archive'
> > Sending:
> > GET http://hackage.haskell.org/packages/archive/00-index.tar.gz HTTP/ 
> > 1.1
> > User-Agent: cabal-install/0.5.1
> > Creating new connection to hackage.haskell.org
> > cabal: recv: resource vanished (Connection reset by peer)
> 
> I am still unable to figure out what is causing this issue, but while  
> experimenting, I found something interesting. Changing the request in  
> cabal-install to POST instead of GET causes it to work perfectly  
> (obviously, this is really ugly, and I know that), avoiding any  
> problems.
> 
> The example get.hs file from the HTTP library works fine (even with  
> the same file), so this is not a global problem with my network and  
> Haskell. :-/

Is the example get.hs file using a proxy server? Are you using a proxy
server? cabal-install will use one if the http_proxy/HTTP_PROXY env var
is set. See Hackage/HttpUtils.hs in cabal-install.

Duncan



More information about the Libraries mailing list