diff options
Diffstat (limited to 'src/http/modules/proxy/ngx_http_event_proxy_handler.h')
-rw-r--r-- | src/http/modules/proxy/ngx_http_event_proxy_handler.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/http/modules/proxy/ngx_http_event_proxy_handler.h b/src/http/modules/proxy/ngx_http_event_proxy_handler.h index e1fb15412..92840d013 100644 --- a/src/http/modules/proxy/ngx_http_event_proxy_handler.h +++ b/src/http/modules/proxy/ngx_http_event_proxy_handler.h @@ -71,6 +71,9 @@ typedef struct { int block_size; int max_block_size; + ngx_path_t *temp_path; + int temp_file_warn; + int retry_500_error; } ngx_http_proxy_loc_conf_t; @@ -91,18 +94,33 @@ typedef struct { typedef struct ngx_http_proxy_ctx_s ngx_http_proxy_ctx_t; struct ngx_http_proxy_ctx_s { - ngx_chain_t *out; + ngx_chain_t *in_hunks; + ngx_chain_t *last_in_hunk; - int last_hunk; - ngx_array_t hunks; - int nhunks; + ngx_chain_t *out_hunks; + ngx_chain_t *last_out_hunk; - int hunk_n; + ngx_chain_t *free_hunks; + + ngx_chain_t *request_hunks; ngx_connection_t *connection; ngx_http_request_t *request; ngx_http_proxy_headers_in_t headers_in; + + int block_size; + int allocated; + + ngx_file_t *temp_file; + off_t temp_offset; + + int last_hunk; + ngx_array_t hunks; + int nhunks; + + int hunk_n; + ngx_http_proxy_upstream_url_t *upstream_url; ngx_http_proxy_upstreams_t *upstreams; int cur_upstream; |