最新状态
还在构想当中,还没有实现。
代码仓库
http://git.heiher.info/hscgi.git
CGI 协议
http://en.wikipedia.org/wiki/Common_Gateway_Interface
SCGI 协议
http://en.wikipedia.org/wiki/Simple_Common_Gateway_Interface
http://www.python.ca/scgi/protocol.txt
HSCGI 服务器
HSCGI 是 SCGI 服务器的一个实现,它定义了模块接口类,用户通过编写其模块实现具体的功能。HSCGI 的模块分为两种类型 Handler 和 Filter 。
Handler 模块
这种类型的模块用于实现具体的处理功能,它定义了两个操作接口:
check : 检查当前的 Request 是否应该处理。
dispatch : 处理当前的 Request,生成 Response。
Filter 模块
这种类型的模块用于处理 Handler 模块生成的 Response,它定义了两个操作接口:
check : 检查当前的 Response 是否应该处理。
dispatch : 处理当前的 Response。
未解决问题
1. 高效的异步I/O。
2. 基于流的数据处理。
3. Request 缓冲区太大。
4. Inet Socket 鉴权。
Over!
只能来打酱油了~~~很高深的咚咚
俺表示看不懂。纯支持啦。
嗦嘎,跑php还是python,要均衡各cgi进程哦!