[patch] #562: cabal-install update fails going through a HTTP proxy

Valery V. Vorotyntsev valery.vv at gmail.com
Mon Nov 16 16:15:59 EST 2009


> Valery V. Vorotyntsev wrote:
>> Sorry, Sigbjorn, it didn't work.

Sigbjorn Finne wrote:
> Thanks - that's good, now we know :)

I'm not so sure any more.

>> I've rolled back to patched HTTP-4000.0.8, the one with connection
>> closing commented out in `sendHTTP_notify'. I need this proxy
>> downloading thing to just work...

Cabal client reinstalled with "patched" HTTP-4000.0.8 was still having
occasional failures today. My proxy-POC.hs always succeeded, while
cabal failed quite often with familiar

    cabal: Codec.Compression.Zlib: premature end of compressed stream

This means that proxy-POC.hs is not trustworthy: it doesn't expose the
bug in 100% cases.

I am going to roll back even further tomorrow: I'll patch [1]
cabal-install to use strict ByteStrings and see if /that/ does the
job.  (I'm not sure in anything any more.)

  [1] http://hpaste.org/fastcgi/hpaste.fcgi/view?id=9447#a9504

> I suspect tempering the notion of close and doing a socket shutdown
> is the way forward here.

So do I...  If my suspicions are of any significance after several
delusive "Wolf!" cries [2,3].

  [2] http://hackage.haskell.org/trac/hackage/ticket/562#comment:9
  [3] http://trac.haskell.org/http/ticket/8#comment:7

> I'll see if I can play with this some tonight.

I've installed squid proxy server. Gotta make this bug exposable...

-- 
Regards,
vvv


More information about the Libraries mailing list