nbtrap

Results 17 comments of nbtrap

I understand that. In fact, the FastCGI spec says that the server is supposed to connect to the application with fd 0 already opened as a socket, on which the...

Edit: It doesn't work when I use Clack. When I use just bare fastcgi, it works. Looking at the code, I can't figure out what substantial difference there is in...

Works: ``` lisp (in-package :cl-nbtrap) (defun app (req) (multiple-value-bind (status-code headers content) (funcall (get-handler-for req) req) (sb-fastcgi:fcgx-puts req (with-output-to-string (s nil) (when status-code (format s "Status: ~D ~A~%" status-code (http-status-reason...

So far as I can tell, control reaches `__BEGIN__` but never reaches `__END__`: ``` lisp (defun server-on-fd (func fd &key (flags 0)) (fcgx-init) __BEGIN__ (with-foreign-object (req 'fcgx-request) (fcgx-init-request req fd...

Other than that, I can't tell. I'm not getting any error message or entering the debugger.

Any idea what might be going wrong?

I believe I did. If you can't figure it out, I may spend some more time on it. I want to write my web sites/apps in lisp, and this seems...