[hunchentoot-devel] serve-event support for SBCL and CLISP
Luís Oliveira
luismbo at gmail.com
Sun Nov 19 21:25:26 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.
Comments welcome.
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serve-event.diff
Type: application/octet-stream
Size: 28885 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20061119/54cb1881/attachment.obj>
More information about the Tbnl-devel
mailing list