[Nitro] [PATCH] Prototype ACGI support

Bryan Soto bryan.a.soto at gmail.com
Sun Jan 15 13:42:10 EST 2006


Hi Kashia,

I think you forgot to attach the patch.

Just curious, google seems to think ACGI is Mac only. Is that the case? I
was going to try it out, but I'm on WinXP and Linux.

Thanks,

Bryan

On 1/15/06, Kashia Buch <kashia at vfemail.net> wrote:
>
> Hi all,
>
> yesterday I spent half of the day, just to implement ACGI. Result: ACGI
> seemed nice at first, but on my computer it is unusable. This patch is _not_
> for production use, it's only for those who want to experiment with it a
> bit. Maybe it works better at someone elses computer, I seem to have
> problems with file locks on my computer (which actually shouldn't happen)
>
> So, for those who want to take a look, this patch doesn't break anything,
> it just adds another cgi handler.
>
> Usage:
>
>   * copy acgi.c and Makefile.acgi to your public/ folder.
>   * in public/: make -f Makefile.acgi
>   * edit your .htaccess file to use acgi.cgi instead of fcgi/cgi.rb
>   * Then just point your browser to your application.
>
> If you enabled error loggin in Apache, "tail -f" it to get an idea on how
> your program is doing. What it should doing is: start the Nitro application
> once (it uses the normal rub.rb) and handle the incoming requests from the
> browser.
>
> The idea from acgi is quite nice for small applications (if it would work
> correctly). It creates a server (nitro application) and locks server.lockin /tmp/acgi_ipc/. For each request from the browser it locks
> client.lock, processes the request and unlocks the client.lock again.
> The server will stay started for all requests.
> All this is done by the acgi.c program so it works very fast. Blocking
> lock requests handle concurrent requests.
>
> Well, since I spent this half day getting it to work, maybe someone can
> make use of it, it may be of educational value for someone, it may even work
> perfectly for someone.
>
> Have a nice day,
>
> Kash
>
> --
> Feel the love
> http://pinkjuice.com/pics/ruby.png
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060115/adcb5b2c/attachment.html 


More information about the Nitro-general mailing list