nginx http处理请求入口

来源:互联网 发布:linux服务器端口怎么开 编辑:程序博客网 时间:2024/05/13 11:52

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