Mercurial > hg > nginx
diff src/event/ngx_event.h @ 563:9c2f3ed7a247 release-0.3.3
nginx-0.3.3-RELEASE import
*) Change: the "bl" and "af" parameters of the "listen" directive was
renamed to the "backlog" and "accept_filter".
*) Feature: the "rcvbuf" and "sndbuf" parameters of the "listen"
directive.
*) Change: the "$msec" log parameter does not require now the
additional the gettimeofday() system call.
*) Feature: the -t switch now tests the "listen" directives.
*) Bugfix: if the invalid address was specified in the "listen"
directive, then after the -HUP signal nginx left an open socket in
the CLOSED state.
*) Bugfix: the mime type may be incorrectly set to default value for
index file with variable in the name; the bug had appeared in 0.3.0.
*) Feature: the "timer_resolution" directive.
*) Feature: the millisecond "$upstream_response_time" log parameter.
*) Bugfix: a temporary file with client request body now is removed
just after the response header was transferred to a client.
*) Bugfix: OpenSSL 0.9.6 compatibility.
*) Bugfix: the SSL certificate and key file paths could not be relative.
*) Bugfix: the "ssl_prefer_server_ciphers" directive did not work in
the ngx_imap_ssl_module.
*) Bugfix: the "ssl_protocols" directive allowed to specify the single
protocol only.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 19 Oct 2005 12:33:58 +0000 |
parents | c1f965ef9718 |
children | 58475592100c |
line wrap: on
line diff
--- a/src/event/ngx_event.h Wed Oct 12 13:50:36 2005 +0000 +++ b/src/event/ngx_event.h Wed Oct 19 12:33:58 2005 +0000 @@ -134,6 +134,9 @@ unsigned closed:1; + /* to test on worker exit */ + unsigned channel:1; + #if (NGX_THREADS) unsigned locked:1; @@ -196,9 +199,10 @@ ngx_int_t (*del_conn)(ngx_connection_t *c, u_int flags); ngx_int_t (*process_changes)(ngx_cycle_t *cycle, ngx_uint_t nowait); - ngx_int_t (*process_events)(ngx_cycle_t *cycle); + ngx_int_t (*process_events)(ngx_cycle_t *cycle, ngx_msec_t timer, + ngx_uint_t flags); - ngx_int_t (*init)(ngx_cycle_t *cycle); + ngx_int_t (*init)(ngx_cycle_t *cycle, ngx_msec_t timer); void (*done)(ngx_cycle_t *cycle); } ngx_event_actions_t; @@ -214,7 +218,7 @@ /* * The event filter is deleted after a notification without an additional - * syscall: select, poll, kqueue, epoll, Solaris 10's event ports. + * syscall: kqueue, epoll, Solaris 10's event ports. */ #define NGX_USE_ONESHOT_EVENT 0x00000002 @@ -270,6 +274,12 @@ */ #define NGX_USE_FD_EVENT 0x00000400 +/* + * The event module handles periodic or absolute timer event by itself: + * kqueue in FreeBSD 4.4 and NetBSD 2.0, Solaris 10's event ports. + */ +#define NGX_USE_TIMER_EVENT 0x00000800 + /* @@ -446,13 +456,12 @@ #endif - -#define ngx_accept_mutex_unlock() \ - if (ngx_accept_mutex_held) { \ - *ngx_accept_mutex = 0; \ - } +#define NGX_UPDATE_TIME 1 +#define NGX_POST_EVENTS 2 +#define NGX_POST_THREAD_EVENTS 4 +extern sig_atomic_t ngx_event_timer_alarm; extern ngx_uint_t ngx_event_flags; extern ngx_module_t ngx_events_module; extern ngx_module_t ngx_event_core_module; @@ -470,6 +479,7 @@ u_char *ngx_accept_log_error(ngx_log_t *log, u_char *buf, size_t len); +void ngx_process_events_and_timers(ngx_cycle_t *cycle); ngx_int_t ngx_handle_read_event(ngx_event_t *rev, u_int flags); ngx_int_t ngx_handle_write_event(ngx_event_t *wev, size_t lowat);