I soon found out that having everything in a single process isnt to good either :/
its was a little bit faster then spawning a new process..
bit it could stil only serve 1 client at a time.. so it now spawns
process again ;) LOL
although this time with proper "forking" using (process)
so its can serve many clients.
it sends the "control" code over the commandline, and loads the
html+newlisp template file and runs it... so the control code must send
the result to the client and close the socket. freeing the server up to do other things =)
allmost same interface as before, just removed the HTTPD context from the script
and i removed the old CGI way completly.
heres the updated files:
grb_httpd.lsp
index.lsp
go here to test
http://grable.cjb.net/
UPDATE: forks regular file downloads as well, like images/etc.