Nginx系列(一):HTTP处理流程概述

accept阶段(ngx_http_init_connection): 分配ngx_http_connection_t结构体; 根据fd的端口和地址,为hc->addr_conf赋值,以供后续server块查询; 新的fd加入epoll,设置读超时,超时时间为post_accept_timeout,设置连接可重用。 rev:ngx_http_wait_request_handler (此时没有读取
相关文章
相关标签/搜索