Hi David, The code below worked for me to just verify that FastCGI was working. That was on Apache, but I can't imagine why that would matter. If FastCGI is working, then after refreshing a few times you should see the counter increase and the process ID stay the same. With plain CGI, you'd see the process ID change and the counter would stay the same.
The main problem was just that your "global count" statement needed to be inside your GET() method. I'm not sure what you were doing with the query string, so I replaced that with a snippet that pretty-prints everything in web.ctx, including the environment. The differences in the environment between FastCGI and plain CGI tend to be subtle, but it's worth knowing what to expect. Sorry it took so long to get a response to this. --Alex ____________________________________________________________ import os, web, pprint urls = ('/', 'IndexPage') count = 0 class IndexPage(object): def GET(self): global count count += 1 return "\n\n".join([ "Count: %d"%count, "Process ID: %d"%(os.getpid()), pprint.pformat(dict(web.ctx)) ]) app = web.application(urls, globals()) web.config.debug = True if __name__=="__main__": web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr) app.run() ____________________________________________________________ -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.