diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-08 14:23:20 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-08 14:23:20 +0000 |
commit | 851cd73f1d1fffd265bff03f5db9470ec7f2842f (patch) | |
tree | 8b37df6fa5cc2ff72799a53532000b52480de34e /src/http/ngx_http_request.h | |
parent | ba206e147c5fd9932b04ac24d01662d86ba7d6b9 (diff) | |
download | nginx-851cd73f1d1fffd265bff03f5db9470ec7f2842f.tar.gz nginx-851cd73f1d1fffd265bff03f5db9470ec7f2842f.zip |
*) refactor subrequest handling, now they run as separate posted requests
*) now $upstream_addr, $upstream_status, $upstream_response_time can be used
with log_subrequest
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index f0e0eade1..1add80da6 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -58,6 +58,7 @@ #define NGX_HTTP_ZERO_IN_URI 1 #define NGX_HTTP_SUBREQUEST_IN_MEMORY 2 +#define NGX_HTTP_SUBREQUEST_WAITED 4 #define NGX_HTTP_OK 200 @@ -321,6 +322,14 @@ struct ngx_http_postponed_request_s { }; +typedef struct ngx_http_posted_request_s ngx_http_posted_request_t; + +struct ngx_http_posted_request_s { + ngx_http_request_t *request; + ngx_http_posted_request_t *next; +}; + + typedef ngx_int_t (*ngx_http_handler_pt)(ngx_http_request_t *r); typedef void (*ngx_http_event_handler_pt)(ngx_http_request_t *r); @@ -373,6 +382,7 @@ struct ngx_http_request_s { ngx_http_request_t *parent; ngx_http_postponed_request_t *postponed; ngx_http_post_subrequest_t *post_subrequest; + ngx_http_posted_request_t *posted_requests; uint32_t in_addr; ngx_uint_t port; @@ -428,8 +438,8 @@ struct ngx_http_request_s { unsigned request_body_file_group_access:1; unsigned request_body_file_log_level:3; - unsigned fast_subrequest:1; unsigned subrequest_in_memory:1; + unsigned waited:1; unsigned gzip:2; |