[patch] #562: cabal-install update fails going through a HTTP
proxy
Duncan Coutts
duncan at haskell.org
Mon Nov 16 08:21:47 EST 2009
On Sat, 2009-11-14 at 23:10 +0100, Sigbjorn Finne wrote:
> On 11/13/2009 17:43, Valery V. Vorotyntsev wrote:
> > ....
> > I've found the bug in HTTP library.
> > sendHTTP_notify function[1] closes connection when it sees
> > `Connection: close' header in HTTP response. This is just the case
> > with proxied HTTP session.
> > ...
> >
>
> Hi Valery,
>
> nice one -- sterling work chasing this one down and providing a
> suggested fix :)
Thanks to both of you!
> I've got a tentative fix in for this, not disabling closing altogether (that
> wouldn't be compliant with Connection:close handling), but delaying
> it until EOF is reached...at least that's the intent. It may not be lazy
> enough, but I'm unable to verify either way right now.
>
> If anyone's interested in testing, the repo contains the changes made --
>
> git://code.galois.com/HTTPbis.git/
>
> sorry for being so slow in dealing with this, btw.
Valery, if you have a chance to check this, that'd be great then
hopefully for cabal-install we'd just specify a dependency on the next
HTTP package version.
Duncan
More information about the cabal-devel
mailing list