File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,9 @@ nginx的以下功能模块的相关代码已经阅读,并对其源码及相关
163163 NGINX不支持PUSH、做反向代理情况下和后端为什么还是走HTTP1.X协议?
164164
165165
166- ===================================
167- 改造点及可疑问题:
166+
167+ 改造点及可疑问题:
168+ ===================================
168169 1. 和后端服务器通过检查套接字连接状态来判断后端服务器是否down机,如果失效则连接下一个服务器。这种存在缺陷,例如如果后端服务器直接拔掉网线或者后端服务器断
169170 电了,则检测套接字是判断不出来的,协议栈需要长时间过后才能判断出,如果关闭掉协议栈的keepalive可能永远检测不出,这时候nginx还是会把客户端请求发往后端服务器,
170171 如果发往后端服务器数据大小很大,可能需要多次write,这时候会由write timeout来判断出后端出现问题。但是如果发往后端数据长度小,则不会添加write定时器,而是通过
@@ -177,10 +178,11 @@ http2 quic学习参考:
177178===================================
178179libquic goquic编译安装,源码分析注释:https://github.com/y123456yz/reading-and-annotate-quic
179180nghttp2相关参考:https://github.com/y123456yz/reading-and-annotate-nghttp2
181+
180182
181-
183+
184+ 编译方法:
182185===================================
183- 编译方法:
184186步骤1:这里根据需要编译自己的模块
185187cd nginx-1.9.2
186188./configure --add-module=./src/mytest_config --add-module=./src/my_test_module --add-module=./src/mytest_subrequest --add-module=./src/mytest_upstream --add-module=./src/ngx_http_myfilter_module --with-debug --with-file-aio --add-module=./src/sendfile_test --with-threads --add-module=/var/yyz/nginx-1.9.2/src/echo-nginx-module-master --add-module=./src/nginx-requestkey-module-master/ --with-http_secure_link_module --add-module=./src/redis2-nginx-module-master/ --add-module=./src/lua-nginx-module-master/
Original file line number Diff line number Diff line change @@ -163,8 +163,9 @@ nginx的以下功能模块的相关代码已经阅读,并对其源码及相关
163163 NGINX不支持PUSH 、做反向代理情况下和后端为什么还是走HTTP1 .X协议 ?
164164
165165
166- == = == = == = == = == = == = == = == = == = == = == = ==
167- 改造点及可疑问题 :
166+
167+ 改造点及可疑问题 :
168+ = == == == == == == == == == == == == == == == == ==
168169 1. 和后端服务器通过检查套接字连接状态来判断后端服务器是否down机 ,如果失效则连接下一个服务器 。这种存在缺陷 ,例如如果后端服务器直接拔掉网线或者后端服务器断
169170 电了 ,则检测套接字是判断不出来的 ,协议栈需要长时间过后才能判断出 ,如果关闭掉协议栈的keepalive可能永远检测不出 ,这时候nginx还是会把客户端请求发往后端服务器 ,
170171 如果发往后端服务器数据大小很大 ,可能需要多次write ,这时候会由write timeout来判断出后端出现问题 。但是如果发往后端数据长度小 ,则不会添加write定时器 ,而是通过
@@ -178,9 +179,9 @@ http2 quic学习参考:
178179libquic goquic编译安装 ,源码分析注释 :https ://github.com/y123456yz/reading-and-annotate-quic
179180nghttp2相关参考 :https ://github.com/y123456yz/reading-and-annotate-nghttp2
180181
181-
182+
183+ 编译方法 :
182184== = == = == = == = == = == = == = == = == = == = == = ==
183- 编译方法 :
184185步骤1 :这里根据需要编译自己的模块
185186cd nginx - 1.9 .2
186187./configure -- add - module = ./src /mytest_config -- add - module = ./src /my_test_module -- add - module = ./src /mytest_subrequest -- add - module = ./src /mytest_upstream -- add - module = ./src /ngx_http_myfilter_module -- with - debug -- with - file - aio -- add - module = ./src /sendfile_test -- with - threads -- add - module = /var /yyz /nginx - 1.9 .2 /src /echo - nginx - module - master -- add - module = ./src /nginx - requestkey - module - master / -- with - http_secure_link_module -- add - module = ./src /redis2 - nginx - module - master / -- add - module = ./src /lua - nginx - module - master /
You can’t perform that action at this time.
0 commit comments