Mercurial > hg > nginx-vendor-0-5
annotate src/os/unix/ngx_posix_config.h @ 324:7cf404023f50 NGINX_0_5_32
nginx 0.5.32
*) Change: now nginx tries to set the "worker_priority",
"worker_rlimit_nofile", "worker_rlimit_core", and
"worker_rlimit_sigpending" without super-user privileges.
*) Change: now nginx escapes space and "%" in request to a mail proxy
authentication server.
*) Change: now nginx escapes "%" in $memcached_key variable.
*) Change: the special make target "upgrade1" was defined for online
upgrade of 0.1.x versions.
*) Feature: the "add_header Last-Modified ..." directive changes the
"Last-Modified" response header line.
*) Feature: the mail proxy supports AUTHENTICATE in IMAP mode.
Thanks to Maxim Dounin.
*) Feature: the mail proxy supports STARTTLS in SMTP mode.
Thanks to Maxim Dounin.
*) Bugfix: nginx did not close directory file on HEAD request if
autoindex was used.
Thanks to Arkadiusz Patyk.
*) Bugfix: the "proxy_hide_header" and "fastcgi_hide_header" directives
did not hide response header lines whose name was longer than 32
characters.
Thanks to Manlio Perillo.
*) Bugfix: active connection counter always increased if mail proxy was
used.
*) Bugfix: if backend returned response header only using non-buffered
proxy, then nginx closed backend connection on timeout.
*) Bugfix: nginx did not support several "Connection" request header
lines.
*) Bugfix: a charset set by the "charset" directive was not appended to
the "Content-Type" header set by $r->send_http_header().
*) Bugfix: a segmentation fault might occur in worker process if
/dev/poll method was used.
*) Bugfix: nginx did not work on FreeBSD/sparc64.
*) Bugfix: a segmentation fault occurred in worker process if invalid
address was set in the "auth_http" directive.
*) Bugfix: now nginx uses default listen backlog value 511 on all
platforms except FreeBSD.
Thanks to Jiang Hong.
*) Bugfix: now Solaris sendfilev() is not used to transfer the client
request body to FastCGI-server via the unix domain socket.
*) Bugfix: if the same host without specified port was used as backend
for HTTP and HTTPS, then nginx used only one port - 80 or 443.
*) Bugfix: the "proxy_ignore_client_abort" and
"fastcgi_ignore_client_abort" directives did not work; bug appeared
in 0.5.13.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 24 Sep 2007 00:00:00 +0400 |
parents | a528ae0fe909 |
children | 26ff8d6b618d |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_POSIX_CONFIG_H_INCLUDED_ | |
8 #define _NGX_POSIX_CONFIG_H_INCLUDED_ | |
9 | |
10 | |
64 | 11 #if (NGX_HPUX) |
4 | 12 #define _XOPEN_SOURCE |
13 #define _XOPEN_SOURCE_EXTENDED 1 | |
14 #endif | |
15 | |
16 | |
64 | 17 #if (NGX_TRU64) |
16 | 18 #define _REENTRANT |
19 #endif | |
20 | |
21 | |
0 | 22 #include <sys/types.h> |
23 #include <sys/time.h> | |
4 | 24 #if (NGX_HAVE_UNISTD_H) |
0 | 25 #include <unistd.h> |
4 | 26 #endif |
27 #if (NGX_HAVE_INTTYPES_H) | |
28 #include <inttypes.h> | |
29 #endif | |
0 | 30 #include <stdarg.h> |
31 #include <stddef.h> /* offsetof() */ | |
32 #include <stdio.h> | |
33 #include <stdlib.h> | |
34 #include <errno.h> | |
35 #include <string.h> | |
36 #include <signal.h> | |
37 #include <pwd.h> | |
38 #include <grp.h> | |
39 #include <dirent.h> | |
238 | 40 #include <glob.h> |
0 | 41 |
4 | 42 #if (NGX_HAVE_SYS_FILIO_H) |
43 #include <sys/filio.h> /* FIONBIO */ | |
44 #endif | |
45 #include <sys/ioctl.h> /* FIONBIO */ | |
46 | |
0 | 47 #include <sys/uio.h> |
48 #include <sys/stat.h> | |
49 #include <fcntl.h> | |
50 | |
51 #include <sys/wait.h> | |
52 #include <sys/mman.h> | |
53 #include <sys/resource.h> | |
54 #include <sched.h> | |
55 | |
56 #include <sys/socket.h> | |
57 #include <netinet/in.h> | |
4 | 58 #include <netinet/tcp.h> /* TCP_NODELAY */ |
0 | 59 #include <arpa/inet.h> |
60 #include <netdb.h> | |
28 | 61 #include <sys/un.h> |
0 | 62 |
4 | 63 #if (NGX_HAVE_LIMITS_H) |
64 #include <limits.h> /* IOV_MAX */ | |
65 #endif | |
66 | |
67 #ifndef IOV_MAX | |
68 #define IOV_MAX 16 | |
69 #endif | |
70 | |
71 | |
0 | 72 #include <ngx_auto_config.h> |
73 | |
74 | |
18 | 75 #if (NGX_HAVE_POLL) |
0 | 76 #include <poll.h> |
77 #endif | |
78 | |
79 | |
18 | 80 #if (NGX_HAVE_KQUEUE) |
4 | 81 #include <sys/event.h> |
82 #endif | |
83 | |
84 | |
18 | 85 #if (NGX_HAVE_DEVPOLL) |
4 | 86 #include <sys/ioctl.h> |
87 #include <sys/devpoll.h> | |
88 #endif | |
89 | |
90 | |
324 | 91 #define NGX_LISTEN_BACKLOG 511 |
92 | |
93 | |
4 | 94 #if (__FreeBSD__) && (__FreeBSD_version < 400017) |
95 | |
96 #include <sys/param.h> /* ALIGN() */ | |
97 | |
98 /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */ | |
99 | |
100 #undef CMSG_SPACE | |
101 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) | |
102 | |
103 #undef CMSG_DATA | |
104 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr))) | |
105 | |
106 #endif | |
107 | |
108 | |
150 | 109 extern char **environ; |
110 | |
111 | |
0 | 112 #endif /* _NGX_POSIX_CONFIG_H_INCLUDED_ */ |