- 博客(8)
- 收藏
- 关注
原创 Nginx源码阅读(ngx_http_process_request)
ngx_http_process_request()执行流程ngx_http_process_request() { ... ngx_http_handler() { ... ngx_http_core_run_phases() } ngx_http_run_posted_requests() // 处理post请求}ngx...
2018-07-15 17:51:37 678 1
原创 Nginx源码阅读(ngx_http_process_request_line)
ngx_http_process_request_line()static voidngx_http_process_request_line(ngx_event_t *rev){ ssize_t n; ngx_int_t rc, rv; ngx_str_t host; ngx_con...
2018-07-15 17:45:34 1026
原创 Nginx源码阅读(ngx_http_init_connection)
ngx_http_init_connection()voidngx_http_init_connection(ngx_connection_t *c){ ngx_uint_t i; ngx_event_t *rev; struct sockaddr_in *sin; ngx_http_port_t ...
2018-07-15 17:43:21 1080
原创 Nginx源码阅读(事件/连接/请求)
在nginx中,ngx_connection_t是对TCP连接的封装,包括已连接套接字、读事件、写事件表示一个事件的数据结构struct ngx_event_s { void *data; // 通常指向ngx_connection_t unsigned write:1; // 位域,表示事件可写 unsigned ...
2018-07-15 17:27:05 519
原创 Linux内核中断
异常分为4类:中断(interrupt),陷阱(trap)、故障(fault)、终止(abort)第1个是异步的,后3个是同步的。
2018-07-06 17:26:56 833
原创 Linux内核丢包
收发包各个queuehttps://www.cnblogs.com/zengkefu/p/5583618.htmlhttps://zhensheng.im/2017/08/11/2997/MIAO_LE_GE_MIhttps://www.sdnlab.com/17530.html统计数[root@localhost ~]# ethtool -S eth0NIC statistics: rx_packets: 3331177214 tx_packets: 3582794017
2018-07-05 12:34:17 2783
原创 Linux CPU总结
CPUsocket表示CPU插槽,1个CPU插槽安装1个物理CPUcore表示核,1个物理CPU包含多个coreThread表示线程(逻辑CPU),1个core包含1(关闭HT)或2(打开HT)个Thread双路十六核表示2个物理CPU,1个物理CPU包含16个核,打开HT后一共包含2 * 16 * 2 = 64核,如下所示: Socket 0 Socket 1Core...
2018-07-05 12:19:13 782
原创 TCP协议总结
MSS(maximum segment size)只能出现在SYN包中,通信双方在SYN包和SYN+ACK包中互相通告各自能接收的MSSSYN包不能携带data,占用seqACK包能携带data,携带data时占用seq,不携带data时不占用seqFIN包能携带data,不论是否携带data都占用seq即使窗口为0,也必须接收零窗口探测包、ACK包、URG包七个定时器...
2018-07-05 11:56:22 502
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人