Nginx 源代码笔记 - HTTP 模块 - memcache

Datetime:2016-08-23 01:30:12          Topic: Memcached           Share
ngx_http_core_find_config_phase
    ngx_http_update_location_config

        if (clcf->handler) {
            r->content_handler = clcf->handler;
        }

ngx_http_core_content_phase

    if (r->content_handler) {
        r->write_event_handler = ngx_http_request_empty_handler;
        ngx_http_finalize_request(r, r->content_handler(r));
        return NGX_OK;
    }

ngx_http_memcached_pass

    clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
    clcf->handler = ngx_http_memcached_handler;




About List