[Tilecache] TileCache and Keep-Alive

Guillaume Sueur guillaume.sueur at neogeo-online.net
Wed May 21 17:53:14 EDT 2008


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.



Guillaume




More information about the Tilecache mailing list