comparison src/event/modules/ngx_select_module.c @ 107:b5be4b0448d3

nginx-0.0.1-2003-07-01-19:00:03 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 01 Jul 2003 15:00:03 +0000
parents 6dfda4cf5200
children ac69ab96328d
comparison
equal deleted inserted replaced
106:9f9de4deda7e 107:b5be4b0448d3
68 68
69 static int ngx_select_init(ngx_log_t *log) 69 static int ngx_select_init(ngx_log_t *log)
70 { 70 {
71 ngx_event_conf_t *ecf; 71 ngx_event_conf_t *ecf;
72 72
73 ecf = ngx_event_get_conf(ngx_event_module); 73 ecf = ngx_event_get_conf(ngx_event_core_module);
74 74
75 FD_ZERO(&master_read_fd_set); 75 FD_ZERO(&master_read_fd_set);
76 FD_ZERO(&master_write_fd_set); 76 FD_ZERO(&master_write_fd_set);
77 77
78 ngx_test_null(event_index, 78 ngx_test_null(event_index,
374 374
375 static char *ngx_select_init_conf(ngx_pool_t *pool, void *conf) 375 static char *ngx_select_init_conf(ngx_pool_t *pool, void *conf)
376 { 376 {
377 ngx_event_conf_t *ecf; 377 ngx_event_conf_t *ecf;
378 378
379 ecf = ngx_event_get_conf(ngx_event_module); 379 ecf = ngx_event_get_conf(ngx_event_core_module);
380 380
381 /* the default FD_SETSIZE is 1024U in FreeBSD 5.x */ 381 /* the default FD_SETSIZE is 1024U in FreeBSD 5.x */
382 382
383 if ((unsigned) ecf->connections > FD_SETSIZE) { 383 if ((unsigned) ecf->connections > FD_SETSIZE) {
384 return "maximum number of connections " 384 return "maximum number of connections "