Question about long-running web scripts

Gilles nospam at nospam.com
Fri Oct 26 05:56:48 EDT 2012


On Thu, 25 Oct 2012 08:53:11 -0400, David Hutto
<dwightdhutto at gmail.com> wrote:
>>> OTOH, Python web scripts can be written as long-running scripts: In
>>> this case, what is the added-value of using FastCGI? Why can't the
>>> web server simply call the Python script directly, just like CGI?
>
>The server should call a the script, or script.sleep()
>
>There are also server options to setup when a script is run, other
>than a cron jo for php.

Thanks. Does it mean that Python scripts that rely on either fcgi.py
or WSGI really have some endless loop somewhere and will keep running
once they're launched by FastCGI?



More information about the Python-list mailing list