您的位置:首页 > 理论基础 > 计算机网络

nginx http处理请求入口

2015-12-05 15:29 591 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: