Mercurial > hg > nginx-vendor-0-6
annotate src/event/ngx_event_posted.h @ 384:09b703ae3ba5 NGINX_0_6_36
nginx 0.6.36
*) Change: now the "Invalid argument" error returned by
setsockopt(TCP_NODELAY) on Solaris, is ignored.
*) Change: now POSTs without "Content-Length" header line are allowed.
*) Feature: the "try_files" directive.
*) Feature: the --with-pcre option in the configure.
*) Feature: the "if_modified_since" directive.
*) Feature: the "$cookie_..." variables.
*) Feature: the "$arg_..." variables.
*) Bugfix: compatibility with Tru64 UNIX.
Thanks to Dustin Marquess.
*) Bugfix: a "ssl_engine" directive did not use a SSL-accelerator for
asymmetric ciphers.
Thanks to Marcin Gozdalik.
*) Bugfix: in a redirect rewrite directive original arguments were
concatenated with new arguments by a "?" rather than an "&";
the bug had appeared in 0.1.18.
Thanks to Maxim Dounin.
*) Bugfix: nginx could not be built on AIX.
*) Bugfix: a double response might be returned if the epoll or rtsig
methods are used and a redirect was returned to a request with
body.
Thanks to Eden Li.
*) Bugfix: a segmentation fault might occur in worker process if
"resolver" directive was used in SMTP proxy.
*) Bugfix: fastcgi_store stored files not always.
*) Bugfix: nginx did not process a FastCGI server response, if the
server send too many messages to stderr before response.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Apr 2009 00:00:00 +0400 |
parents | 408f195b3482 |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_EVENT_POSTED_H_INCLUDED_ | |
8 #define _NGX_EVENT_POSTED_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 #include <ngx_event.h> | |
14 | |
15 | |
112 | 16 #if (NGX_THREADS) |
17 extern ngx_mutex_t *ngx_posted_events_mutex; | |
18 #endif | |
19 | |
20 | |
21 #define ngx_locked_post_event(ev, queue) \ | |
22 \ | |
23 if (ev->prev == NULL) { \ | |
24 ev->next = (ngx_event_t *) *queue; \ | |
25 ev->prev = (ngx_event_t **) queue; \ | |
26 *queue = ev; \ | |
27 \ | |
28 if (ev->next) { \ | |
29 ev->next->prev = &ev->next; \ | |
30 } \ | |
31 \ | |
32 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "post event %p", ev); \ | |
33 \ | |
34 } else { \ | |
35 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | |
36 "update posted event %p", ev); \ | |
37 } | |
38 | |
39 | |
40 #define ngx_post_event(ev, queue) \ | |
41 \ | |
42 ngx_mutex_lock(ngx_posted_events_mutex); \ | |
43 ngx_locked_post_event(ev, queue); \ | |
44 ngx_mutex_unlock(ngx_posted_events_mutex); | |
45 | |
0 | 46 |
47 #define ngx_delete_posted_event(ev) \ | |
112 | 48 \ |
49 *(ev->prev) = ev->next; \ | |
50 \ | |
51 if (ev->next) { \ | |
52 ev->next->prev = ev->prev; \ | |
53 } \ | |
54 \ | |
55 ev->prev = NULL; \ | |
56 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | |
57 "delete posted event %p", ev); | |
0 | 58 |
59 | |
60 | |
112 | 61 void ngx_event_process_posted(ngx_cycle_t *cycle, |
62 ngx_thread_volatile ngx_event_t **posted); | |
0 | 63 void ngx_wakeup_worker_thread(ngx_cycle_t *cycle); |
64 | |
112 | 65 #if (NGX_THREADS) |
66 ngx_int_t ngx_event_thread_process_posted(ngx_cycle_t *cycle); | |
67 #endif | |
68 | |
69 | |
70 extern ngx_thread_volatile ngx_event_t *ngx_posted_accept_events; | |
0 | 71 extern ngx_thread_volatile ngx_event_t *ngx_posted_events; |
72 | |
73 | |
74 #endif /* _NGX_EVENT_POSTED_H_INCLUDED_ */ |