[Tilecache] TileCache and Keep-Alive

Christopher Schmidt crschmidt at metacarta.com
Thu May 22 07:46:34 EDT 2008


On Thu, May 22, 2008 at 09:25:52AM +0200, Guillaume Sueur wrote:
> Done here.
> What is the commit procedure ?

'svn diff', attach a patch to a post to the mailing list.

> 
> Guillaume
> 
> Christopher Schmidt a écrit :
> >On Wed, May 21, 2008 at 11:53:14PM +0200, Guillaume Sueur wrote:
> >>Actually, I did make ab handle KeepAlive HTTP connection by using a raw 
> >>ApacheReq.headers_out['Content-Length'] = len(image)
> >>in modPythonHandler.
> >>I'm not sure it has any impact on a classic use of TileCache, i.e. via a 
> >>web browser.
> >>So, is it worth to submit this patch against the trunk ? For me it looks 
> >>more like a hack for ab, and it seems to be confusing regarding the 
> >>'chunk' transfert-encoding which is designed NOT TO specify the 
> >>content-length.
> >>I'm not an HTTP guru, but as I can read in its specs 
> >>(http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html):
> >>If a message is received with both a Transfer-Encoding header field and 
> >>a Content-Length header field, the latter MUST be ignored.
> >
> >We don't use transfer-encoding. content-length can't hurt anything. I'd
> >be happy to see it added to all the handlers. 
> >
> >Regards,
> 

-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list