fcgi.py

Bernhard Reiter bernhard at abnoba.intevation.de
Tue Jan 2 07:27:34 EST 2001


In article <3a4c1e99.60463812 at newnews.prodigy.net>,
	victor at prodigy.net (Victor Muslin) writes:
> Well, my most important need was not to have to open database
> connections every time CGI executed. 

Well you can do this with mod_python, too of course. :)

> Currently I don't need
> multiple instances of the script running simultaneously. If and
> when I do, I plan to add multithreading to my FastCGI library (I
> actually believe it had already been done).

Yes, there is a mutlithreading thing out there somewere.
http://www.suxers.de/python/fcgi.htm

But implementing this again, when you already have load balancing
available with mod_fcgi in apache seems to be waste somehow.

> I got it running so far with cgi-fcgi.exe bridge. Though it has to
> fork/exec cgi-fcgi program every time, it is still an order of
> magnitude faster than opening ODBC connection. To get it running
> on NT, I modified (very slightly) Robin Dunn's fcgi.py and built
> fcgi2.py on top of it that uses a socket instead of a named pipe.
> You can get my modules at
> http://pages.prodigy.net/victor/fcgi2_py. Please report any bugs
> to me (and perhaps how to fix them since I am still rather new to
> Python).

Nice, thanks.
I will not have time to test it in the next week, though.

> I am yet to attempt to use mod_fcgi (I am new to Apache as well).
> This is my next step once I figure out how to configure Apache on
> WinNT for it (any help is appreciated :-). Once I get this working
> I plan to try either mod_python or mod_snake (any help for
> configuring Apache with those is appreciated as well :).

It should be straigt forward and I have to admit that I never used
mod_snake yet.

	Bernhard
-- 
Professional Service around Free Software                (intevation.net)  
The FreeGIS Project                                         (freegis.org)
Association for a Free Informational Infrastructure            (ffii.org)
FSF Europe                                            (www.fsfeurope.org)



More information about the Python-list mailing list