On Thu, Apr 14, 2011 at 06:58, Robert G. Jakabosky <bo...@sharedrealm.com> wrote: > On Wednesday 13, Alexander Gladysh wrote: >> On Thu, Apr 14, 2011 at 06:07, Fabio Mascarenhas <mascaren...@acm.org> > wrote: >> > On Wed, Apr 13, 2011 at 5:11 PM, Alexander Gladysh <aglad...@gmail.com> >> > wrote:
> You could use a WSAPI wrapper similar to Fabio's and instead of calling > lfcgi.accept() in a sub-thread, you can use select() on fd 0 (See > FCGI_LISTENSOCK_FILENO from fastcgi.h [1]) and a command socket. When fd 0 > becomes readable you call lfcgi.accept to handle the incoming request. If the > command socket is readable, then you read a message from the command socket. Not so simple. As far as I understand, if FCGI_Accept() is not called immediately after one is done with HTTP request, FCGI_Finish() must be called. And FCGI_Finish is missing from lfcgi. Alexander. _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/