[mod-lisp-devel] compiling mod-lisp
Marc Battyani
marc.battyani at fractalconcept.com
Fri Oct 9 20:38:38 UTC 2009
Marko Riedel wrote:
> Takehiko Abe writes:
> > Marko Riedel wrote:
> >
> > > Do I need to install the apache sources and if yes, what is the right
> > > package?
> >
> > No. You only need either apache2-threaded-dev or apache2-prefork-dev.
> > The package include apxs (APache eXtenSion tool). Use it to compile the
> > source e.g.:
> >
> > $ apxs2 -c mod_lisp2.c
>
> Dear friends,
>
> this comman worked as it should. However, I'm still getting a timeout
> from the Lisp process. Here is my test program:
>
> (format *modlisp-socket* "~a~%" "HTTP/1.1 200 OK")
> (format *modlisp-socket* "~a~%~%" "Content-Type: text/html")
>
> (format *modlisp-socket* "~a~%" "<HTML><BODY>Hello, world.</BODY></HTML>")
>
> Could it be that I need to compute the Content-Length header and add
> it to the output? That seems a cumbersome way of going about things. Is
> there a package that does this automatically?
>
If you don't send the length then you have to close the socket so that
mod_lisp knows that it has received all the data.
Marc
More information about the mod-lisp-devel
mailing list