Skip to content

Commit

Permalink
Update source/chapter_05.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuanwen Chen committed Feb 4, 2013
1 parent 96e63b0 commit e5d6b40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/chapter_05.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ upstream模块接口
这些回调函数如下表所示:

+-------------------+--------------------------------------------------------------+
|create_request |生成发送到后端服务器的请求缓冲(缓冲链)。 |
|create_request |生成发送到后端服务器的请求缓冲(缓冲链),在初始化upstream |
| |时使用。 |
+-------------------+--------------------------------------------------------------+
|reinit_request |在某台后端服务器出错的情况,nginx会尝试另一台后端服务器。 |
| |nginx选定新的服务器以后,会先调用此函数,然后再次调用 |
| |create_request,以重新初始化upstream模块的工作状态。 |
| |nginx选定新的服务器以后,会先调用此函数,以重新初始化 |
| |upstream模块的工作状态,然后再次进行upstream连接。 |
+-------------------+--------------------------------------------------------------+
|process_header |处理后端服务器返回的信息头部。所谓头部是与upstream server |
| |通信的协议规定的,比如HTTP协议的header部分,或者memcached |
Expand Down

0 comments on commit e5d6b40

Please sign in to comment.