快速和超轻量级HTTP/1.1 WSGI服务器:bjoern

jopen 11年前

bjoern 是个快速、超轻量级的 HTTP/1.1 WSGI 服务器软件,为 CPython 编写。使用 C 语言开发,基于 Libev 事件库和 http-parser 开发,这是一个单线程的服务,占用内存非常低。

示例代码:

  • ~ 1000 lines of C code
  • Memory footprint ~ 600KB
  • Single-threaded and without coroutines or other crap
  • Can bind to TCP host:port addresses and Unix sockets (thanks @k3d3!)
  • Full persistent connection ("keep-alive") support in both HTTP/1.0 and 1.1, including support for HTTP/1.1 chunked responses

项目主页:http://www.open-open.com/lib/view/home/1383872379102