摘要:
今天发现nginx有不少的499错误,大约占了将近0.5%,而且是在新上线了一个含upstream的业务之后。grep一下nginx源码,定义在ngx_request_t.h/** HTTP does not define the code for the case when a client closed* the connection while we are processing its request so we introduce* own code to log such situation when a client has closed the connection* befo 阅读全文
摘要:
现在还没有办法理清整个过程,分析的东西也比较局部。因此就当写在这自己记录一下,后续随着自己理解的加深可以更系统整理一下吧。// src/event/ngx_event_connect.c该文件主要只有一个函数 ngx_event_connect_peer(ngx_peer_connection_t *pc),该函数在以下几个地方被调用了:http/ngx_http_upstream.c, line 1103mail/ngx_mail_proxy_module.c, line 150mail/ngx_mail_auth_http_module.c, line 194可见,这个函数主要作用是ngi 阅读全文