[mod-lisp-devel] Patch: mod_lisp2 and HEAD requests

Marc Battyani marc.battyani at fractalconcept.com
Mon Dec 27 15:32:52 UTC 2004


Edi Weitz <edi at agharta.de> wrote:

> On Mon, 27 Dec 2004 13:45:18 +0100, Edi Weitz <edi at agharta.de> wrote:
>
> > mod_lisp2 will hang if the Lisp side sends a non-empty body although
> > the browser sent a HEAD request.  Here's a little patch that tries
> > to fix this.  (Read from the Lisp socket but don't write to the
> > client.  Is there a better way to do that?)
>
> Now that I think of it a little bit more I'm not so sure what's the
> right way to handle this.  A proper reply (from the server to the
> client) to a HEAD request will include the correct Content-Length
> header.  However, in mod_lisp the Content-Length header sent by the
> Lisp process is used to indicate to Apache if Lisp wants to send a
> body, i.e. there seems to be no way for the Lisp side to handle HEAD
> request in such a way that the content isn't generated but the browser
> gets the correct Content-Length header anyway.

Maybe we could add a Lisp-Content-Length that would be used for the socket
keep alive stuff and just pass the Content-Length to Apache. Or better a new
HTTP-Content-Length header so that it's still compatible with the current
protocol.

Cheers,

Marc





More information about the mod-lisp-devel mailing list