Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 84:fab4cb00fe5b
nginx-0.0.1-2003-05-06-21:03:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 May 2003 17:03:16 +0000 |
parents | b2ece31c976a |
children | 3973260705cc |
comparison
equal
deleted
inserted
replaced
83:a7e45c45a95c | 84:fab4cb00fe5b |
---|---|
41 0, | 41 0, |
42 0}, | 42 0}, |
43 | 43 |
44 {ngx_string("post_accept_timeout"), | 44 {ngx_string("post_accept_timeout"), |
45 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, | 45 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, |
46 ngx_conf_set_time_slot, | 46 ngx_conf_set_msec_slot, |
47 0, | 47 0, |
48 addressof(ngx_http_post_accept_timeout)}, | 48 addressof(ngx_http_post_accept_timeout)}, |
49 | 49 |
50 {ngx_string("connection_pool_size"), | 50 {ngx_string("connection_pool_size"), |
51 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, | 51 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, |
59 0, | 59 0, |
60 addressof(ngx_http_request_pool_size)}, | 60 addressof(ngx_http_request_pool_size)}, |
61 | 61 |
62 {ngx_string("client_header_timeout"), | 62 {ngx_string("client_header_timeout"), |
63 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, | 63 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, |
64 ngx_conf_set_time_slot, | 64 ngx_conf_set_msec_slot, |
65 0, | 65 0, |
66 addressof(ngx_http_client_header_timeout)}, | 66 addressof(ngx_http_client_header_timeout)}, |
67 | 67 |
68 {ngx_string("client_header_buffer_size"), | 68 {ngx_string("client_header_buffer_size"), |
69 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, | 69 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1, |
101 NGX_HTTP_LOC_CONF_OFFSET, | 101 NGX_HTTP_LOC_CONF_OFFSET, |
102 offsetof(ngx_http_core_loc_conf_t, sendfile)}, | 102 offsetof(ngx_http_core_loc_conf_t, sendfile)}, |
103 | 103 |
104 {ngx_string("send_timeout"), | 104 {ngx_string("send_timeout"), |
105 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 105 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
106 ngx_conf_set_time_slot, | 106 ngx_conf_set_msec_slot, |
107 NGX_HTTP_LOC_CONF_OFFSET, | 107 NGX_HTTP_LOC_CONF_OFFSET, |
108 offsetof(ngx_http_core_loc_conf_t, send_timeout)}, | 108 offsetof(ngx_http_core_loc_conf_t, send_timeout)}, |
109 | 109 |
110 {ngx_string("lingering_time"), | 110 {ngx_string("lingering_time"), |
111 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 111 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
112 ngx_conf_set_time_slot, | 112 ngx_conf_set_msec_slot, |
113 NGX_HTTP_LOC_CONF_OFFSET, | 113 NGX_HTTP_LOC_CONF_OFFSET, |
114 offsetof(ngx_http_core_loc_conf_t, lingering_time)}, | 114 offsetof(ngx_http_core_loc_conf_t, lingering_time)}, |
115 | 115 |
116 {ngx_string("lingering_timeout"), | 116 {ngx_string("lingering_timeout"), |
117 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 117 NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
118 ngx_conf_set_time_slot, | 118 ngx_conf_set_msec_slot, |
119 NGX_HTTP_LOC_CONF_OFFSET, | 119 NGX_HTTP_LOC_CONF_OFFSET, |
120 offsetof(ngx_http_core_loc_conf_t, lingering_timeout)}, | 120 offsetof(ngx_http_core_loc_conf_t, lingering_timeout)}, |
121 | 121 |
122 {ngx_null_string, 0, NULL, 0, 0} | 122 {ngx_null_string, 0, NULL, 0, 0} |
123 }; | 123 }; |
237 #endif | 237 #endif |
238 if (r->uri.len < plcf[i]->name.len) { | 238 if (r->uri.len < plcf[i]->name.len) { |
239 continue; | 239 continue; |
240 } | 240 } |
241 | 241 |
242 rc = ngx_strncmp(r->uri.data, plcf[i]->name.data, plcf[i]->name.len); | 242 rc = ngx_rstrncmp(r->uri.data, plcf[i]->name.data, plcf[i]->name.len); |
243 | 243 |
244 if (rc < 0) { | 244 if (rc < 0) { |
245 break; | 245 break; |
246 } | 246 } |
247 | 247 |