[hunchentoot-devel] serve-event support for SBCL and CLISP

Luís Oliveira luismbo at gmail.com
Mon Nov 20 12:38:39 UTC 2006


Hello,

I've added a new keyword argument :MODE to START-SERVER that can be
one of :THREADED or :SERVE-EVENT and implemented serve-event support
for SBCL and CLISP. This is a preliminary patch. No real-world testing
or documentation yet. It might however already be useful for people
doing development on, e.g., SBCL/OSX.

In CLISP's case, you have to run (hunchentoot:clisp-serve-events) to
for the server(s) to actually run and handle requests. By the way,
should anyone deploy a server using serve-event, make sure to run it
behind a reverse proxy such as Apache's mod_proxy or Pound otherwise a
client with a slow connection will stall all the other clients.

Also, regarding CLISP, it complains about WRITE-SEQUENCEing a sequence
of (unsigned-byte 8) to a flexi-stream with a character element-type.
See the START-OUTPUT function in headers.lisp towards the end. Not
sure if that was the best fix or whether it should be conditionalized
for CLISP.

Patch URL:
http://common-lisp.net/~loliveira/patches/serve-event.diff

Comments welcome.

--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/

PS -- This is a resend as my previous message got stuck somewhere.
Sorry if it becomes a duplicate.



More information about the Tbnl-devel mailing list