Mercurial > hg > nginx-vendor-0-5
annotate src/os/unix/ngx_freebsd_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 | f70f2f565fe0 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_FREEBSD_CONFIG_H_INCLUDED_ | |
8 #define _NGX_FREEBSD_CONFIG_H_INCLUDED_ | |
9 | |
10 | |
11 #include <sys/types.h> | |
12 #include <sys/time.h> | |
13 #include <unistd.h> | |
14 #include <stdarg.h> | |
15 #include <stddef.h> /* offsetof() */ | |
16 #include <stdio.h> | |
17 #include <stdlib.h> | |
18 #include <errno.h> | |
19 #include <string.h> | |
20 #include <signal.h> | |
21 #include <pwd.h> | |
22 #include <grp.h> | |
23 #include <dirent.h> | |
238 | 24 #include <glob.h> |
0 | 25 |
4 | 26 #include <sys/filio.h> /* FIONBIO */ |
0 | 27 #include <sys/uio.h> |
28 #include <sys/stat.h> | |
29 #include <fcntl.h> | |
30 | |
31 #include <sys/wait.h> | |
32 #include <sys/mman.h> | |
33 #include <sys/resource.h> | |
34 #include <sched.h> | |
35 | |
36 #include <sys/socket.h> | |
37 #include <netinet/in.h> | |
2 | 38 #include <netinet/tcp.h> /* TCP_NODELAY, TCP_NOPUSH */ |
0 | 39 #include <arpa/inet.h> |
40 #include <netdb.h> | |
28 | 41 #include <sys/un.h> |
0 | 42 |
43 #include <libutil.h> /* setproctitle() before 4.1 */ | |
44 #include <osreldate.h> | |
45 #include <sys/sysctl.h> | |
4 | 46 #include <sys/param.h> /* ALIGN() */ |
0 | 47 |
48 | |
49 #if __FreeBSD_version < 400017 | |
50 | |
51 /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */ | |
52 | |
53 #undef CMSG_SPACE | |
54 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) | |
55 | |
56 #undef CMSG_DATA | |
57 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr))) | |
58 | |
59 #endif | |
60 | |
61 | |
62 #include <ngx_auto_config.h> | |
63 | |
64 | |
18 | 65 #if (NGX_HAVE_POLL) |
0 | 66 #include <poll.h> |
67 #endif | |
68 | |
69 | |
18 | 70 #if (NGX_HAVE_AIO) |
0 | 71 #include <aio.h> |
72 #endif | |
73 | |
74 | |
18 | 75 #if (NGX_HAVE_KQUEUE) |
16 | 76 #include <sys/event.h> |
0 | 77 #endif |
78 | |
79 | |
324 | 80 #define NGX_LISTEN_BACKLOG -1 |
81 | |
82 | |
72 | 83 #if (defined SO_ACCEPTFILTER && !defined NGX_HAVE_DEFERRED_ACCEPT) |
18 | 84 #define NGX_HAVE_DEFERRED_ACCEPT 1 |
0 | 85 #endif |
86 | |
87 | |
88 #if (__FreeBSD_version < 430000 || __FreeBSD_version < 500012) | |
89 | |
90 pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg); | |
91 | |
92 #endif | |
93 | |
94 #ifndef IOV_MAX | |
95 #define IOV_MAX 1024 | |
96 #endif | |
97 | |
98 | |
18 | 99 #ifndef NGX_HAVE_INHERITED_NONBLOCK |
100 #define NGX_HAVE_INHERITED_NONBLOCK 1 | |
0 | 101 #endif |
102 | |
103 | |
88 | 104 #define NGX_HAVE_OS_SPECIFIC_INIT 1 |
105 | |
0 | 106 |
150 | 107 extern char **environ; |
108 extern char *malloc_options; | |
109 | |
110 | |
0 | 111 #endif /* _NGX_FREEBSD_CONFIG_H_INCLUDED_ */ |