diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-02-27 16:53:01 +0000 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-02-27 16:53:01 +0000 |
commit | 508afb8cf504cf4ee77dfa69b75a93ac259817c2 (patch) | |
tree | 15f1b5b099f7f6515387f9343b0ba88c47693d18 /src/http/ngx_http_request.h | |
parent | 67a68720b7f08542c891d7b9ef08f07e3543b0e4 (diff) | |
download | nginx-508afb8cf504cf4ee77dfa69b75a93ac259817c2.tar.gz nginx-508afb8cf504cf4ee77dfa69b75a93ac259817c2.zip |
The default server lookup is now done only once per connection.
Previously, it was done for every request in a connection.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index f06f33f49..d7d076083 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -289,7 +289,11 @@ typedef struct { } ngx_http_request_body_t; +typedef struct ngx_http_addr_conf_s ngx_http_addr_conf_t; + typedef struct { + ngx_http_addr_conf_t *addr_conf; + ngx_http_request_t *request; ngx_buf_t **busy; @@ -302,17 +306,6 @@ typedef struct { } ngx_http_connection_t; -typedef struct ngx_http_server_name_s ngx_http_server_name_t; - - -typedef struct { - ngx_hash_combined_t names; - - ngx_uint_t nregex; - ngx_http_server_name_t *regex; -} ngx_http_virtual_names_t; - - typedef void (*ngx_http_cleanup_pt)(void *data); typedef struct ngx_http_cleanup_s ngx_http_cleanup_t; @@ -406,8 +399,6 @@ struct ngx_http_request_s { ngx_http_post_subrequest_t *post_subrequest; ngx_http_posted_request_t *posted_requests; - ngx_http_virtual_names_t *virtual_names; - ngx_int_t phase_handler; ngx_http_handler_pt content_handler; ngx_uint_t access_code; |