Re: Question about long-running web scripts

2012-10-26 Thread Gilles
On Fri, 26 Oct 2012 12:00:17 +0100, Tim Golden wrote: >Certainly there are Python equivalents (mod_python, mod_wsgi, etc.) >which can run in effectively the same way as mod_php, and they could be >configured to run an fcgi frontend script, I presume. There's always a >certain confusion here becaus

Re: Question about long-running web scripts

2012-10-26 Thread Tim Golden
On 26/10/2012 10:58, Gilles wrote: > On Thu, 25 Oct 2012 14:24:16 +0100, Tim Golden > wrote: >>> But actually, I didn't mean one-shot scripts, where the Python >>> interpreter + script must be loaded each time, but rather: If I leave >>> a Python running in an endless loop, why not just use either

Re: Question about long-running web scripts

2012-10-26 Thread Gilles
On Thu, 25 Oct 2012 14:24:16 +0100, Tim Golden wrote: >> But actually, I didn't mean one-shot scripts, where the Python >> interpreter + script must be loaded each time, but rather: If I leave >> a Python running in an endless loop, why not just use either CGI or >> some other basic way to call th

Re: Question about long-running web scripts

2012-10-26 Thread Gilles
On Thu, 25 Oct 2012 08:53:11 -0400, David Hutto 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 th

Re: Question about long-running web scripts

2012-10-25 Thread Tim Golden
On 25/10/2012 13:40, Gilles wrote: > On Thu, 25 Oct 2012 13:03:14 +0100, Tim Golden > wrote: >> (Your question is a little confused at the end. I'm choosing to >> understand: why can't we just run Python one-shot, like CGI? The likely >> alternative meaning is: why can't the incoming request be ro

Re: Question about long-running web scripts

2012-10-25 Thread David Hutto
On Thu, Oct 25, 2012 at 8:03 AM, Tim Golden wrote: > On 25/10/2012 12:45, Gilles wrote: >> I'd like to check something about running Python web applications. >> >> Generally speaking, the reason scripts run faster when called >> through FastCGI or the mod_* modules, is because the interpreter is >

Re: Question about long-running web scripts

2012-10-25 Thread Gilles
On Thu, 25 Oct 2012 13:03:14 +0100, Tim Golden wrote: >(Your question is a little confused at the end. I'm choosing to >understand: why can't we just run Python one-shot, like CGI? The likely >alternative meaning is: why can't the incoming request be routed to an >already-running Python program --

Re: Question about long-running web scripts

2012-10-25 Thread Tim Golden
On 25/10/2012 12:45, Gilles wrote: > I'd like to check something about running Python web applications. > > Generally speaking, the reason scripts run faster when called > through FastCGI or the mod_* modules, is because the interpreter is > already up and running. But when running PHP scripts, th

Question about long-running web scripts

2012-10-25 Thread Gilles
Hello I'd like to check something about running Python web applications. Generally speaking, the reason scripts run faster when called through FastCGI or the mod_* modules, is because the interpreter is already up and running. But when running PHP scripts, this does nothing about fetching the fil