Zaver
Yet another fast and efficient HTTP server.
代码地址:https://github.com/zyearn/zaver
purpose
Zaver 的目的是帮助开发者理解基于 epoll 的高性能服务器是如何开发的。
Nginx 是一个非常好的服务器开发学习范例,但是它的代码规模较大也较复杂,让许多人望而却步。
Zaver 用非常少的代码展示了像 Nginx 这类高性能服务器的核心结构,为开发者进一步学习网络编程打下基础。
programming model
- epoll
- non-blocking I/O
- thread-pool
compile and run
make
./objs/zaver -c zaver.conf
support
- HTTP persistent connection
- browser cache
todo
add command line parameteradd conf file- sendfile
- proxy
- other HTTP/1.1 features
- memory pool
- timer(e.g. close socket when timeout)
恳请各位提出一些意见和拍砖~~