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](https://cmake.org/) 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
* ~~add command line parameter~~
* ~~add conf file~~
* sendfile
* proxy
* FastCGI
* other HTTP/1.1 features
* memory pool
* WebDAV?
## more details
http://lifeofzjs.com/blog/2015/05/16/how-to-write-a-server/
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
测试方式(依次在浏览器输入一下内容进行不同情形的测试): 127.0.0.1:9988 127.0.0.1:9988/hehe.html 127.0.0.1:9988/login.html 127.0.0.1:9988/haha?x=10&y=20 也可以下载fiddler工具进行更全面的模拟测试! 1、支持GET/POST方法 2、支持CGI 3、支持错误返回 4、支持chunked数据的解析 缺点: 1、支持的方法不够全面 2、CGI实现不够科学,可以尝试使用FASTCGI 3、不支持https 4、不支持回应chunked数据 感兴趣的同学可以继续完善相关功能.
资源详情
资源评论
资源推荐
收起资源包目录

































































































共 81 条
- 1















woshiyuanlei
- 粉丝: 50
- 资源: 9
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制

评论9