Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 5085:7f1cbcc71327
The default server lookup is now done only once per connection.
Previously, it was done for every request in a connection.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 27 Feb 2013 16:53:01 +0000 |
parents | f7fe817c92a2 |
children | 1b204b8ea9a3 |
comparison
equal
deleted
inserted
replaced
5084:f7fe817c92a2 | 5085:7f1cbcc71327 |
---|---|
287 ngx_http_chunked_t *chunked; | 287 ngx_http_chunked_t *chunked; |
288 ngx_http_client_body_handler_pt post_handler; | 288 ngx_http_client_body_handler_pt post_handler; |
289 } ngx_http_request_body_t; | 289 } ngx_http_request_body_t; |
290 | 290 |
291 | 291 |
292 typedef struct { | 292 typedef struct ngx_http_addr_conf_s ngx_http_addr_conf_t; |
293 | |
294 typedef struct { | |
295 ngx_http_addr_conf_t *addr_conf; | |
296 | |
293 ngx_http_request_t *request; | 297 ngx_http_request_t *request; |
294 | 298 |
295 ngx_buf_t **busy; | 299 ngx_buf_t **busy; |
296 ngx_int_t nbusy; | 300 ngx_int_t nbusy; |
297 | 301 |
298 ngx_buf_t **free; | 302 ngx_buf_t **free; |
299 ngx_int_t nfree; | 303 ngx_int_t nfree; |
300 | 304 |
301 ngx_uint_t pipeline; /* unsigned pipeline:1; */ | 305 ngx_uint_t pipeline; /* unsigned pipeline:1; */ |
302 } ngx_http_connection_t; | 306 } ngx_http_connection_t; |
303 | |
304 | |
305 typedef struct ngx_http_server_name_s ngx_http_server_name_t; | |
306 | |
307 | |
308 typedef struct { | |
309 ngx_hash_combined_t names; | |
310 | |
311 ngx_uint_t nregex; | |
312 ngx_http_server_name_t *regex; | |
313 } ngx_http_virtual_names_t; | |
314 | 307 |
315 | 308 |
316 typedef void (*ngx_http_cleanup_pt)(void *data); | 309 typedef void (*ngx_http_cleanup_pt)(void *data); |
317 | 310 |
318 typedef struct ngx_http_cleanup_s ngx_http_cleanup_t; | 311 typedef struct ngx_http_cleanup_s ngx_http_cleanup_t; |
403 ngx_http_request_t *main; | 396 ngx_http_request_t *main; |
404 ngx_http_request_t *parent; | 397 ngx_http_request_t *parent; |
405 ngx_http_postponed_request_t *postponed; | 398 ngx_http_postponed_request_t *postponed; |
406 ngx_http_post_subrequest_t *post_subrequest; | 399 ngx_http_post_subrequest_t *post_subrequest; |
407 ngx_http_posted_request_t *posted_requests; | 400 ngx_http_posted_request_t *posted_requests; |
408 | |
409 ngx_http_virtual_names_t *virtual_names; | |
410 | 401 |
411 ngx_int_t phase_handler; | 402 ngx_int_t phase_handler; |
412 ngx_http_handler_pt content_handler; | 403 ngx_http_handler_pt content_handler; |
413 ngx_uint_t access_code; | 404 ngx_uint_t access_code; |
414 | 405 |