[PATCH] Really fix http headers for web UI and issue 254

Eric Hopper hopper at omnifarious.org
Fri Jun 30 17:41:00 CDT 2006


On Tue, Jun 27, 2006 at 08:11:39PM -0700, Bryan O'Sullivan wrote:
> Why not bite the bullet and implement HTTP/1.1 chunked transfer
> encoding instead?  It's crying out to be used for e.g. changegroups,
> anyway, so that keepalive can always work.

I don't really like the idea of fixing the header problem by writing a
parser that can detect when the headers are over so it can package them
up the way a WSGI compliant server would like them to be.

Chunked transfer encoding is a good idea, but it should be implemented
purely in server.py.  I may do that when I'm done with fixing the odd
signal an exception handling problem now in hg serve.  It shouldn't be
that hard.

Though the implementation required by WSGI would require some incredibly
tiny chunks when combined with the whole recursive generator thing.

Have fun (if at all possible),
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060630/80225481/attachment.pgp


More information about the Mercurial mailing list