开发者

Python script running both FastCGI and traditional CGI?

I have written a Python script that currently is designed to handle traditional CGI requests. Of course, this won't scale well as the overheads for each request are great, which is why I'm looking into implementing FastCGI support.

How can I modify my script to work with both CGI and FastCGI? Is there something the script can read from the environment that will identify if it is being spawned as either a traditional CGI request process or a FastCGI process? I don't rea开发者_C百科lly want to sacrifice traditional CGI support to implement FastCGI support.


Program to WSGI and use the flup adapters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜