comparison src/event/modules/ngx_devpoll_module.c @ 22:8b6db3bda591 NGINX_0_1_11

nginx 0.1.11 *) Feature: the worker_priority directive. *) Change: both tcp_nopush and tcp_nodelay directives affect the transferred response. *) Bugfix: nginx did not call initgroups(). Thanks to Andrew Sitnikov and Andrei Nigmatulin. *) Change: now the ngx_http_autoindex_module shows the file size in the bytes. *) Bugfix: the ngx_http_autoindex_module returned the 500 error if the broken symlink was in a directory. *) Bugfix: the files bigger than 4G could not be transferred using sendfile. *) Bugfix: if the backend was resolved to several backends and there was an error while the response waiting then process may got caught in an endless loop. *) Bugfix: the worker process may exit with the "unknown cycle" message when the /dev/poll method was used. *) Bugfix: "close() channel failed" errors. *) Bugfix: the autodetection of the "nobody" and "nogroup" groups. *) Bugfix: the send_lowat directive did not work on Linux. *) Bugfix: the segmentation fault occurred if there was no events section in configuration. *) Bugfix: nginx could not be built on OpenBSD. *) Bugfix: the double slashes in "://" in the URI were converted to ":/".
author Igor Sysoev <http://sysoev.ru>
date Thu, 02 Dec 2004 00:00:00 +0300
parents 6f8b0dc0f8dd
children da8c190bdaba
comparison
equal deleted inserted replaced
21:4eeb9cfef970 22:8b6db3bda591
433 433
434 for (i = 0; i < events; i++) { 434 for (i = 0; i < events; i++) {
435 c = &ngx_cycle->connections[event_list[i].fd]; 435 c = &ngx_cycle->connections[event_list[i].fd];
436 436
437 if (c->fd == -1) { 437 if (c->fd == -1) {
438 if (ngx_cycle->read_events[event_list[i].fd].closed) {
439 continue;
440 }
441
442 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, "unexpected event");
443 continue;
444 }
445
446 #if 0
447 if (c->fd == -1) {
438 old_cycle = ngx_old_cycles.elts; 448 old_cycle = ngx_old_cycles.elts;
439 for (j = 0; j < ngx_old_cycles.nelts; j++) { 449 for (j = 0; j < ngx_old_cycles.nelts; j++) {
440 if (old_cycle[j] == NULL) { 450 if (old_cycle[j] == NULL) {
441 continue; 451 continue;
442 } 452 }
449 459
450 if (c->fd == -1) { 460 if (c->fd == -1) {
451 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, "unknown cycle"); 461 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, "unknown cycle");
452 exit(1); 462 exit(1);
453 } 463 }
464 #endif
454 465
455 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 466 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
456 "devpoll: fd:%d, ev:%04Xd, rev:%04Xd", 467 "devpoll: fd:%d, ev:%04Xd, rev:%04Xd",
457 event_list[i].fd, 468 event_list[i].fd,
458 event_list[i].events, event_list[i].revents); 469 event_list[i].events, event_list[i].revents);