Commit graph

3067 commits

Author SHA1 Message Date
Igor Sysoev
152504f0c2 export aio presence knowledge to prevent using "aio sendfile",
if aio does not present
2009-11-05 13:12:30 +00:00
Igor Sysoev
bfd1a3c03c Fix a bug introduced in r2032: After a child process has read a terminate
message from a channel, the process tries to read the channel again.
The kernel (at least FreeBSD) may preempt the process and sends a SIGIO
signal to a master process. The master process sends a new terminate message,
the kernel switches again to the the child process, and the child process
reads the messages instead of an EAGAIN error. And this may repeat over
and over. Being that the child process can not exit the cycle and test
the termination flag set by the message handler.

The fix disallow the master process to send a new terminate message on
SIGIO signal reception. It may send the message only on SIGALARM signal.
2009-11-04 19:41:08 +00:00
Igor Sysoev
12f76d6832 allow to inherit unix domain sockets while online upgrade 2009-11-04 18:36:43 +00:00
Igor Sysoev
ca6e7a42b6 allow to work single "set_real_ip_from unix:" 2009-11-04 11:37:06 +00:00
Igor Sysoev
2a2237f139 bump version 2009-11-04 11:20:54 +00:00
Igor Sysoev
96aea7427c release-0.8.22 tag 2009-11-03 18:52:38 +00:00
Igor Sysoev
afd398a099 nginx-0.8.22-RELEASE 2009-11-03 18:52:37 +00:00
Igor Sysoev
2f387509eb fix segfault if there is single large_client_header_buffers
and a request line fills it completely
2009-11-03 18:12:20 +00:00
Igor Sysoev
c8312b7e09 posix_fadvise64() had been implemented in Linux 2.5.60 2009-11-03 16:29:47 +00:00
Igor Sysoev
da26dde047 use setproctitle("%s", title) 2009-11-03 16:28:21 +00:00
Igor Sysoev
51135fd6d0 fix segfault if no rules are defined, introduced in r3279 2009-11-03 16:04:07 +00:00
Igor Sysoev
0c73f1c6dc fix segfault in SSL if limit_rate is used 2009-11-03 15:38:33 +00:00
Igor Sysoev
d9946897aa fix segfault if $limit_rate was logged 2009-11-03 15:05:38 +00:00
Igor Sysoev
e16b14bcd4 fix "if (!-x ...)" 2009-11-03 14:57:27 +00:00
Igor Sysoev
98a524f8b9 fix directive name in error message: "set_realip_from" to "set_real_ip_from" 2009-11-03 14:41:56 +00:00
Igor Sysoev
cb70a07432 fix directive name in error message: "realip_from" to "set_realip_from" 2009-11-03 13:45:22 +00:00
Igor Sysoev
b6143dacae IPv6 support in ngx_http_access_module 2009-11-03 13:42:45 +00:00
Igor Sysoev
21d080bbf9 ngx_ptocidr() supports IPv6 2009-11-03 13:42:25 +00:00
Igor Sysoev
a9c848d7b1 make ngx_inet6_ntop() non-static 2009-11-03 12:44:55 +00:00
Igor Sysoev
aba252b4d4 optimize some cycles:
*) delete surplus variable;
*) on i386/amd64 "while (n) / n--" is smaller than "while (n--)",
   because the platforms have no postfix operations
2009-11-02 17:12:09 +00:00
Igor Sysoev
04e0208608 set_real_ip_from unix: 2009-11-02 16:46:07 +00:00
Igor Sysoev
43cf5e6fd8 support IPv6 addresses in Real IP headers 2009-11-02 16:24:27 +00:00
Igor Sysoev
eff6a4b08c change ngx_parse_addr() interface 2009-11-02 16:11:06 +00:00
Igor Sysoev
328c1a11b5 proxy_bind, fastcgi_bind, and memcached_bind 2009-11-02 15:24:02 +00:00
Igor Sysoev
af3ab6a42d ngx_parse_addr() 2009-11-02 15:20:42 +00:00
Igor Sysoev
3f26bb637b rename ngx_peer_addr_t to ngx_addr_t 2009-11-02 15:14:17 +00:00
Igor Sysoev
7194f99ae5 use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr" 2009-11-02 14:32:46 +00:00
Igor Sysoev
1c068187ae replace inet_addr() with ngx_inet_addr() 2009-11-02 13:51:10 +00:00
Igor Sysoev
ab6bce4d62 use ngx_inet6_addr() 2009-11-02 12:58:30 +00:00
Igor Sysoev
556a6d8758 ngx_inet6_addr() 2009-11-02 12:50:00 +00:00
Igor Sysoev
27e4420f7c style fix 2009-11-02 12:41:56 +00:00
Igor Sysoev
beed596292 delete unused field c->local_socklen 2009-11-01 19:29:49 +00:00
Igor Sysoev
b126ba528d remove a broken 0.1.x to 0.2+ upgrade procedure 2009-10-30 19:42:12 +00:00
Igor Sysoev
68229407ec do not unlink unix domain socket file while online upgrade 2009-10-30 19:18:21 +00:00
Igor Sysoev
1d70f24717 unlink unix domain socket file after testing 2009-10-30 19:16:50 +00:00
Igor Sysoev
fbfff592d0 fix segfaults if no listen directive was set in default server {} block:
ngx_http_add_listen() uses server's connection_pool_size and
client_header_timeout values, therefore it must be called after
the values have been merged, the bug had been introduced in r3218
2009-10-29 15:53:50 +00:00
Igor Sysoev
e9a86ece98 style fix 2009-10-28 10:47:00 +00:00
Igor Sysoev
10d7ffb402 fix segfault if http {} block is empty, the bug had been introduced in r3218 2009-10-28 10:45:40 +00:00
Igor Sysoev
7d6f92be00 bump version 2009-10-28 10:31:06 +00:00
Igor Sysoev
7f478e0630 release-0.8.21 tag 2009-10-26 14:09:26 +00:00
Igor Sysoev
0b26c7153b nginx-0.8.21-RELEASE 2009-10-26 14:09:25 +00:00
Igor Sysoev
084aa41f44 fix r3211 2009-10-26 12:00:37 +00:00
Igor Sysoev
5a3b8ba4bb http listen unix domain sockets 2009-10-26 11:43:32 +00:00
Igor Sysoev
136dc062a8 fix r3225 and r3227: preserve default_server bit during listen options
overwriting
2009-10-22 10:17:54 +00:00
Igor Sysoev
4300aabb91 do not run regex for empty host name since regex always fails in this case,
the bug had been introduced in r2196
2009-10-22 09:48:42 +00:00
Igor Sysoev
7329f87195 test a duplicate listen in a server 2009-10-22 08:15:16 +00:00
Igor Sysoev
c08d08988d fix r3225: it overrode the listen options by default server default options 2009-10-22 08:14:02 +00:00
Igor Sysoev
55d772a207 listen default_server parameter 2009-10-21 19:18:50 +00:00
Igor Sysoev
dddbdb293f allow to set listen options in any server 2009-10-21 19:16:38 +00:00
Igor Sysoev
f0cf92c39b add listen address in error message 2009-10-21 19:13:27 +00:00