nginx http处理请求入口

nginx http 分phases进行处理;
其中的入口函数为 ngx_http_core_run_phases()

#0  ngx_http_core_run_phases (r=0x770670) at src/http/ngx_http_core_module.c:834
#1  0x000000000044eaec in ngx_http_handler (r=0x770670) at src/http/ngx_http_core_module.c:823
#2  0x000000000045e193 in ngx_http_process_request (r=0x770670) at src/http/ngx_http_request.c:1901
#3  0x000000000045cad2 in ngx_http_process_request_headers (rev=0x7867d0) at src/http/ngx_http_request.c:1332
#4  0x000000000045be75 in ngx_http_process_request_line (rev=0x7867d0) at src/http/ngx_http_request.c:1012
#5  0x000000000045aada in ngx_http_wait_request_handler (rev=0x7867d0) at src/http/ngx_http_request.c:499
#6  0x000000000043f2f9 in ngx_epoll_process_events (cycle=0x7615d0, timer=60000, flags=1) at src/event/modules/ngx_epoll_module.c:822
#7  0x000000000042ff64 in ngx_process_events_and_timers (cycle=0x7615d0) at src/event/ngx_event.c:242
#8  0x000000000043cea1 in ngx_worker_process_cycle (cycle=0x7615d0, data=0x0) at src/os/unix/ngx_process_cycle.c:753
#9  0x00000000004397c2 in ngx_spawn_process (cycle=0x7615d0, proc=0x43cda9 <ngx_worker_process_cycle>, data=0x0,
    name=0x4f5c6b "worker process", respawn=-3) at src/os/unix/ngx_process.c:198
#10 0x000000000043bd31 in ngx_start_worker_processes (cycle=0x7615d0, n=1, type=-3) at src/os/unix/ngx_process_cycle.c:358
#11 0x000000000043b371 in ngx_master_process_cycle (cycle=0x7615d0) at src/os/unix/ngx_process_cycle.c:130
#12 0x0000000000407662 in main (argc=1, argv=0x7fffffffe5f8) at src/core/nginx.c:415
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值