On Sat, Aug 29, 2009 at 10:12, Mackram Raydanmackram@gmail.com wrote:
so i was going through the hunchentoot documenation and I noticed that Edi said "Unless you are in a Lisp without MP capabilities, you can have several active instances of ACCEPTOR (listening on different ports) at the same time."
Now this is great but I can not seem to understand how do you link a dispatcher to an acceptor (any kind of dispatcher) should the uri we put include a port or something. Can anyone point out this? Thanks in advance.
Do you want something like
(let ((server-1 (hunchentoot:start (make-instance 'hunchentoot:acceptor :port 1111 :request-dispatcher 'my-dispatcher)))) (server-2 (hunchentoot:start (make-instance 'hunchentoot:acceptor :port 2222 :request-dispatcher 'my-dispatcher))))) ...)
or am I missing your question?
In a non-MP lisp, hunchentoot:start would block, which is what the sentence cited from the documentation explains.
I can't see any need for subclassing as Leslie has suggested.
-Hans