项目
在 GitHub 查看
zyearn/zaver
关于
又一个快速高效的 HTTP 服务器
系统与基础设施实测星标增长
- 24小时
- +1
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Zaver
Yet another fast and efficient HTTP server.
purpose
The purpose of Zaver is to help developers understand how to write a high performance server based on epoll. Although Nginx is a good learning example, its complexity and huge code base make people discouraged. Zaver uses as few codes as possible to demonstrate the core structure of high performance server like Nginx. Developers can lay a solid foundation by learning Zaver for further study in network programming.
programming model
- epoll
- non-blocking I/O
- thread-pool
compile and run (for now only support Linux2.6+)
please make sure you have cmake installed.
mkdir build && cd build
cmake .. && make
cd .. && ./build/zaver -c zaver.conf
support
- HTTP persistent connection
- browser cache
- timer(use binary heap instead of rbtree used in Nginx)
todo
- sendfile
- proxy
- FastCGI
- other HTTP/1.1 features
- memory pool
- WebDAV?
more details
https://zyearn.github.io/blog/2015/05/16/how-to-write-a-server/
探索相关项目
加载中…