Mercurial > hg > nginx
comparison src/event/ngx_event_proxy.h @ 77:57c2e18d3572
nginx-0.0.1-2003-04-17-21:59:35 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 17 Apr 2003 17:59:35 +0000 |
parents | 6127d7075471 |
children | 9f81437e0ad3 |
comparison
equal
deleted
inserted
replaced
76:6127d7075471 | 77:57c2e18d3572 |
---|---|
18 | 18 |
19 | 19 |
20 struct ngx_event_proxy_s { | 20 struct ngx_event_proxy_s { |
21 ngx_chain_t *read_hunks; | 21 ngx_chain_t *read_hunks; |
22 ngx_chain_t *last_read_hunk; | 22 ngx_chain_t *last_read_hunk; |
23 | |
24 ngx_chain_t *shadow_hunks; | |
25 | |
23 ngx_chain_t *in_hunks; | 26 ngx_chain_t *in_hunks; |
24 ngx_chain_t *last_in_hunk; | 27 ngx_chain_t *last_in_hunk; |
25 ngx_chain_t *shadow_hunks; | 28 |
26 ngx_chain_t *out_hunks; | 29 ngx_chain_t *out_hunks; |
27 ngx_chain_t *last_out_hunk; | 30 ngx_chain_t *last_out_hunk; |
31 | |
28 ngx_chain_t *free_hunks; | 32 ngx_chain_t *free_hunks; |
33 #if 0 | |
34 ngx_chain_t *last_free_hunk; | |
35 #endif | |
36 | |
29 ngx_hunk_t *busy_hunk; | 37 ngx_hunk_t *busy_hunk; |
30 | 38 |
31 ngx_event_proxy_input_filter_pt input_filter; | 39 ngx_event_proxy_input_filter_pt input_filter; |
32 void *input_data; | 40 void *input_data; |
33 | 41 |
36 | 44 |
37 unsigned cachable:1; | 45 unsigned cachable:1; |
38 unsigned block_upstream:1; | 46 unsigned block_upstream:1; |
39 unsigned upstream_eof:1; | 47 unsigned upstream_eof:1; |
40 unsigned upstream_error:1; | 48 unsigned upstream_error:1; |
41 unsigned client_eof:1; | 49 unsigned downstream_eof:1; |
42 unsigned client_error:1; | 50 unsigned downstream_error:1; |
43 | 51 |
44 int level; | 52 int level; |
45 | 53 |
46 int allocated; | 54 int allocated; |
47 int block_size; | 55 int block_size; |
48 int max_block_size; | 56 int max_block_size; |
49 | 57 |
50 off_t temp_offset; | 58 off_t temp_offset; |
51 off_t max_temp_size; | 59 off_t max_temp_file_size; |
52 int file_block_size; | 60 int temp_file_write_size; |
53 | 61 |
54 ngx_connection_t *upstream; | 62 ngx_connection_t *upstream; |
55 ngx_connection_t *client; | 63 ngx_connection_t *downstream; |
56 | 64 |
57 ngx_pool_t *pool; | 65 ngx_pool_t *pool; |
58 ngx_log_t *log; | 66 ngx_log_t *log; |
67 | |
68 ngx_chain_t *preread_hunks; | |
69 #if 0 | |
70 ngx_chain_t *last_preread_hunk; | |
71 #endif | |
72 int preread_size; | |
59 | 73 |
60 ngx_file_t *temp_file; | 74 ngx_file_t *temp_file; |
61 ngx_path_t *temp_path; | 75 ngx_path_t *temp_path; |
62 int number; | 76 int number; |
63 int random; | 77 int random; |
64 char *temp_file_warn; | 78 char *temp_file_warn; |
65 }; | 79 }; |
66 | 80 |
67 | 81 |
68 int ngx_event_proxy_read_upstream(ngx_event_proxy_t *p); | 82 int ngx_event_proxy_read_upstream(ngx_event_proxy_t *p); |
69 int ngx_event_proxy_write_to_client(ngx_event_proxy_t *p); | 83 int ngx_event_proxy_write_to_downstream(ngx_event_proxy_t *p); |
70 int ngx_event_proxy_write_chain_to_temp_file(ngx_event_proxy_t *p); | 84 int ngx_event_proxy_write_chain_to_temp_file(ngx_event_proxy_t *p); |
71 | 85 |
72 | 86 |
73 #endif /* _NGX_EVENT_PROXY_H_INCLUDED_ */ | 87 #endif /* _NGX_EVENT_PROXY_H_INCLUDED_ */ |