08 2012 档案

摘要:直接看代码:162 for ( ;; ) {163 164 for (i = 0; i < 3; i++) { 165 hash = (hash * 113 + iphp->addr[i]) % 6271; //iphp->addr[i]为ip的点分十进制法的第i段166 }167 168 p = hash % iphp->rrp.peers->number;169 170 n = p / (8 * sizeof(uintptr_t));171 m = (uintptr_t) 1... 阅读全文
posted @ 2012-08-13 15:27 小获 阅读(7976) 评论(0) 推荐(1)
摘要:今天发现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 阅读全文
posted @ 2012-08-09 15:08 小获 阅读(9638) 评论(1) 推荐(0)