- currently run compile.sh
- run build/server port_number
- ping the server at **localhost:**port_number
1000 fetches, 8 max parallel, 2.993e+06 bytes, in 0.452735 seconds
2993 mean bytes/connection
2208.8 fetches/sec, 6.61093e+06 bytes/sec
msecs/connect: 0.104882 mean, 0.533 max, 0.018 min
msecs/first-response: 3.39544 mean, 28.149 max, 2.103 min
HTTP response codes:
code 200 -- 1000
- epoll_wait interrupted system call,多线程如何相应信号?
- pthread_mutex_lock和pthread_cond_wait搭配使用
- 主线程新增事件记得sleep以提升响应率
- REUSEADDR导致无法监听?
- Reactor模型
- http_session和http_server中将handler放在第一位,以便于类型转换(伪继承)
- 任务队列的抽象
- http_session的状态转换与监听事件变更
- socket接口标志的含义
- getaddrinfo和gethostbyname/gethostbyaddr
- timer相关
- eventfd
- accept epollet non-block
- http_load使用
- timer
- error handling
- http method handling
- “析构函数”
- 自定义宏处理
- multi-line function formatting
- 使用sendfile传输文件
- filename至少长255
- 无用头文件
- makefile