comparison src/event/modules/ngx_iocp_module.c @ 288:f81d075ad172

nginx-0.0.2-2004-03-14-23:46:25 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 14 Mar 2004 20:46:25 +0000
parents 30310107dbc9
children 1526e7686b20
comparison
equal deleted inserted replaced
287:35a6a9df2d25 288:f81d075ad172
28 ngx_conf_set_num_slot, 28 ngx_conf_set_num_slot,
29 0, 29 0,
30 offsetof(ngx_iocp_conf_t, threads), 30 offsetof(ngx_iocp_conf_t, threads),
31 NULL}, 31 NULL},
32 32
33 {ngx_string("acceptex"), 33 {ngx_string("post_acceptex"),
34 NGX_EVENT_CONF|NGX_CONF_TAKE1, 34 NGX_EVENT_CONF|NGX_CONF_TAKE1,
35 ngx_conf_set_num_slot, 35 ngx_conf_set_num_slot,
36 0, 36 0,
37 offsetof(ngx_iocp_conf_t, acceptex), 37 offsetof(ngx_iocp_conf_t, post_acceptex),
38 NULL}, 38 NULL},
39 39
40 {ngx_string("acceptex_read"), 40 {ngx_string("acceptex_read"),
41 NGX_EVENT_CONF|NGX_CONF_TAKE1, 41 NGX_EVENT_CONF|NGX_CONF_TAKE1,
42 ngx_conf_set_flag_slot, 42 ngx_conf_set_flag_slot,
264 264
265 ngx_test_null(cf, ngx_palloc(cycle->pool, sizeof(ngx_iocp_conf_t)), 265 ngx_test_null(cf, ngx_palloc(cycle->pool, sizeof(ngx_iocp_conf_t)),
266 NGX_CONF_ERROR); 266 NGX_CONF_ERROR);
267 267
268 cf->threads = NGX_CONF_UNSET; 268 cf->threads = NGX_CONF_UNSET;
269 cf->acceptex = NGX_CONF_UNSET; 269 cf->post_acceptex = NGX_CONF_UNSET;
270 cf->acceptex_read = NGX_CONF_UNSET; 270 cf->acceptex_read = NGX_CONF_UNSET;
271 271
272 return cf; 272 return cf;
273 } 273 }
274 274
276 static char *ngx_iocp_init_conf(ngx_cycle_t *cycle, void *conf) 276 static char *ngx_iocp_init_conf(ngx_cycle_t *cycle, void *conf)
277 { 277 {
278 ngx_iocp_conf_t *cf = conf; 278 ngx_iocp_conf_t *cf = conf;
279 279
280 ngx_conf_init_value(cf->threads, 0); 280 ngx_conf_init_value(cf->threads, 0);
281 ngx_conf_init_value(cf->acceptex, 10); 281 ngx_conf_init_value(cf->post_acceptex, 10);
282 ngx_conf_init_value(cf->acceptex_read, 1); 282 ngx_conf_init_value(cf->acceptex_read, 1);
283 283
284 return NGX_CONF_OK; 284 return NGX_CONF_OK;
285 } 285 }