33

GitHub - chronolaw/annotated_nginx: Annotated Nginx Source(中文)

 5 years ago
source link: https://github.com/chronolaw/annotated_nginx
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

annotated_nginx

Annotated Nginx Source(中文)

简介

Nginx源码分析,注解代码,帮助学习Nginx。

Nginx1.10增加了动态模块、http2、reuseport。

Nginx1.11.x里的stream模块的变动较大,完善了阶段处理。

Nginx1.14增加了mirror模块,支持gRPC。

请参考:

当前状态

Nginx 1.15.2

Git分支

分支 说明 注释 master Nginx开发版1.15.2 有 mainline Nginx开发版1.15.2 无 stable Nginx稳定版1.14.0 无

已注解

源码目录快捷入口

  • src - 70%,nginx源码目录
  • core - 90%,md5/sha1/crc等较简单的功能不关注
  • event - 90%,只注解核心模块和epoll,select/kqueue/ssl等不关注
  • http - 70%,少量modules目录里的具体功能模块有注释
  • os/unix - 80%,bsd/darwin/solaris等系统不关注
  • stream - 70%
  • misc - 100%

UML图解

UML图示

部分关键源码(目录分类)

core目录 event目录 http目录 http/modules目录 os/unix目录 stream目录 misc目录

部分关键源码(功能分类)

内存管理 数据结构 进程机制 事件机制 多线程机制 tcp(stream)处理 http处理

不注解

  • auto
  • mail
  • misc

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK