[mod-lisp-devel] Chunked encoding
Marc Battyani
marc.battyani at fractalconcept.com
Thu Dec 21 08:21:42 UTC 2006
"Hugh Winkler" <hughw at hughw.net> wrote:
>I see this topic was raised a couple of months ago :
>http://common-lisp.net/pipermail/mod-lisp-devel/2006-October/thread.html#99.
>
>I've made changes to mod_lisp2.c to support chunked encoding. Sorry,
>I only have a 2.0.55 to run against atm, so I have not backported to
>1.3.
>
>Notes:
>
>Apache 2 has eliminated REQUEST_CHUNKED_DECHUNK, meaning there's no
>way to receive chunked data — Apache will always dechunkify it.
>
>I considered signaling the end of the stream by sending MSG_OOB. Well,
>apr does not support that. So the only option left was to re-chunk the
>data. I opted to re-chunk according to RFC 2616 so that on the Lisp
>side we can use Dr. Weitz' Chunga[1] to de-chunk.
>
>The new behavior is compatible with existing code on the Lisp side
>e.g. Kevin Rosenberg's modlisp. The mod_lisp2 code only chunks if the
>Content-length header is omitted; formerly, Lisp side code could not
>work properly if Content-length was omitted anyway.
>
>There is one maybe extraneous change in this patch: I eliminated some
>gcc compiler warnings issuing from local_lisp_cfg(). Here is my gcc
>version string: (GCC) 4.1.2 20060928 (prerelease) (Ubuntu
>4.1.1-13ubuntu5). This change is not essential but it's nice to build
>with no warnings.
Thanks a lot for this new feature. :)
I tried to apply your patch but subversion complains about its format. Can
you send me the complete file or a svn compatible patch?
>Thanks Mark for mod_lisp... sorry I'm no help on the 1.3 backport.
Thanks for contributing. ;-) No problem for the 1.3 backport, I think that
Apache 2 is available everywhere now.
Marc
More information about the mod-lisp-devel
mailing list