[PATCH 4 of 4] hgweb: return content iterator instead of using write() callable

Dirkjan Ochtman dirkjan at ochtman.nl
Wed Jul 2 03:36:21 CDT 2008


Shun-ichi GOTO <shunichi.goto <at> gmail.com> writes:
> This change cause following traceback on accessing the page
> against "hg serve" (run with python 2.5 for win32):

(...)

> AssertionError: Content-length header sent, but more bytes than
> specified are being written.
> 
> -------------------------------------------------------------------
> 
> By tiny print-debug, following are the values before assertion above:
> len(data)=3990, self.length=0
> len(data)=21, self.length=0

This is apparently a Windows-only issue, or, at least, it doesn't appear on
Linux (although Christian Ebert apparently also had problems on Mac). Will need
to investigate some more. Maybe I should just back this out?

Cheers,

Dirkjan



More information about the Mercurial-devel mailing list