Skip to content

Commit ce964aa

Browse files
committed
Merged with the default branch.
2 parents eba4c3c + 38bd7e7 commit ce964aa

File tree

141 files changed

+4117
-3172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+4117
-3172
lines changed

CHANGES

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,43 @@
11

2+
Changes with Unit 1.28.0 13 Sep 2022
3+
4+
*) Change: increased the applications' startup timeout.
5+
6+
*) Change: disallowed abstract Unix domain socket syntax in non-Linux
7+
systems.
8+
9+
*) Feature: basic statistics API.
10+
11+
*) Feature: customizable access log format.
12+
13+
*) Feature: more HTTP variables support.
14+
15+
*) Feature: forwarded header to replace client address and protocol.
16+
17+
*) Feature: ability to get dynamic variables.
18+
19+
*) Feature: support for abstract Unix sockets.
20+
21+
*) Feature: support for Unix sockets in address matching.
22+
23+
*) Feature: the $dollar variable translates to a literal "$" during
24+
variable substitution.
25+
26+
*) Bugfix: router process could crash if index file didn't contain an
27+
extension.
28+
29+
*) Bugfix: force SCRIPT_NAME in Ruby to always be an empty string.
30+
31+
*) Bugfix: when isolated PID numbers reach the prototype process host
32+
PID, the prototype crashed.
33+
34+
*) Bugfix: the Ruby application process could crash on SIGTERM.
35+
36+
*) Bugfix: the Ruby application process could crash on SIGINT.
37+
38+
*) Bugfix: mutex leak in the C API.
39+
40+
241
Changes with Unit 1.27.0 02 Jun 2022
342

443
*) Feature: ability to specify a custom index file name when serving

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Universal Web App Server
44

5-
![NGINX Unit Logo](docs/unitlogo.png)
5+
![NGINX Unit Logo](docs/unitlogo.svg)
66

77
NGINX Unit is a lightweight and versatile open-source server that has
88
three core capabilities:

auto/isolation

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ nxt_feature_test="#include <sys/wait.h>
2121
#include <sys/syscall.h>
2222

2323
int main() {
24-
return __NR_clone | SIGCHLD;
24+
return SYS_clone | SIGCHLD;
2525
}"
2626
. auto/feature
2727

@@ -61,14 +61,30 @@ fi
6161

6262

6363
nxt_feature="Linux pivot_root()"
64-
nxt_feature_name=NXT_HAVE_PIVOT_ROOT
64+
nxt_feature_name=NXT_HAVE_LINUX_PIVOT_ROOT
6565
nxt_feature_run=no
6666
nxt_feature_incs=
6767
nxt_feature_libs=
6868
nxt_feature_test="#include <sys/syscall.h>
69+
#if !defined(__linux__)
70+
# error
71+
#endif
6972

7073
int main() {
71-
return __NR_pivot_root;
74+
return SYS_pivot_root;
75+
}"
76+
. auto/feature
77+
78+
79+
nxt_feature="<mntent.h>"
80+
nxt_feature_name=NXT_HAVE_MNTENT_H
81+
nxt_feature_run=no
82+
nxt_feature_incs=
83+
nxt_feature_libs=
84+
nxt_feature_test="#include <mntent.h>
85+
86+
int main(void) {
87+
return 0;
7288
}"
7389
. auto/feature
7490

auto/sockets

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,6 @@ nxt_feature_test="#include <sys/filio.h>
225225
}"
226226
. auto/feature
227227

228-
if [ $nxt_found = yes ]; then
229-
NXT_SYS_FILIO_H="#include <sys/filio.h>"
230-
else
231-
NXT_SYS_FILIO_H=
232-
fi
233-
234228

235229
nxt_feature="ioctl(FIONBIO)"
236230
nxt_feature_name=NXT_HAVE_FIONBIO
@@ -239,7 +233,6 @@ nxt_feature_incs=
239233
nxt_feature_libs=
240234
nxt_feature_test="#include <unistd.h>
241235
#include <sys/socket.h>
242-
$NXT_SYS_FILIO_H
243236
#include <sys/ioctl.h>
244237

245238
int main() {

auto/sources

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ NXT_LIB_SRCS=" \
6969
src/nxt_event_conn_job_sendfile.c \
7070
src/nxt_conn_proxy.c \
7171
src/nxt_job.c \
72-
src/nxt_job_resolve.c \
7372
src/nxt_sockaddr.c \
7473
src/nxt_listen_socket.c \
7574
src/nxt_upstream.c \
@@ -84,7 +83,9 @@ NXT_LIB_SRCS=" \
8483
src/nxt_signal_handlers.c \
8584
src/nxt_controller.c \
8685
src/nxt_router.c \
86+
src/nxt_router_access_log.c \
8787
src/nxt_h1proto.c \
88+
src/nxt_status.c \
8889
src/nxt_http_request.c \
8990
src/nxt_http_response.c \
9091
src/nxt_http_error.c \

auto/unix

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,6 @@ if [ $nxt_found = no ]; then
178178
fi
179179

180180

181-
nxt_feature="posix_spawn()"
182-
nxt_feature_name=NXT_HAVE_POSIX_SPAWN
183-
nxt_feature_run=
184-
nxt_feature_incs=
185-
nxt_feature_libs=
186-
nxt_feature_test="#include <spawn.h>
187-
#include <unistd.h>
188-
189-
int main(int argc, char *argv[]) {
190-
(void) posix_spawn(NULL, \"\", NULL, NULL, argv, NULL);
191-
return 0;
192-
}"
193-
. auto/feature
194-
195-
196181
# NetBSD 1.0, OpenBSD 1.0, FreeBSD 2.2 setproctitle().
197182

198183
nxt_feature="setproctitle()"

configure

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ NXT_GROUP=
4848
nxt_module=${1:-""}
4949

5050
case $nxt_module in
51-
--help)
52-
. auto/help
53-
exit 0
54-
;;
55-
5651
""|--*)
5752
;;
5853

docs/changes.xml

Lines changed: 128 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,132 @@
55
<change_log title="unit">
66

77

8+
<changes apply="unit-php
9+
unit-python unit-python2.7
10+
unit-python3.4 unit-python3.5 unit-python3.6 unit-python3.7
11+
unit-python3.8 unit-python3.9 unit-python3.10
12+
unit-go
13+
unit-perl
14+
unit-ruby
15+
unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11 unit-jsc13
16+
unit-jsc14 unit-jsc15 unit-jsc16 unit-jsc17 unit-jsc18"
17+
ver="1.28.0" rev="1"
18+
date="2022-09-13" time="18:00:00 +0300"
19+
packager="Nginx Packaging &lt;[email protected]&gt;">
20+
21+
<change>
22+
<para>
23+
NGINX Unit updated to 1.28.0.
24+
</para>
25+
</change>
26+
27+
</changes>
28+
29+
30+
<changes apply="unit" ver="1.28.0" rev="1"
31+
date="2022-09-13" time="18:00:00 +0300"
32+
packager="Nginx Packaging &lt;[email protected]&gt;">
33+
34+
<change type="change">
35+
<para>
36+
increased the applications' startup timeout.
37+
</para>
38+
</change>
39+
40+
<change type="change">
41+
<para>
42+
disallowed abstract Unix domain socket syntax in non-Linux systems.
43+
</para>
44+
</change>
45+
46+
<change type="feature">
47+
<para>
48+
basic statistics API.
49+
</para>
50+
</change>
51+
52+
<change type="feature">
53+
<para>
54+
customizable access log format.
55+
</para>
56+
</change>
57+
58+
<change type="feature">
59+
<para>
60+
more HTTP variables support.
61+
</para>
62+
</change>
63+
64+
<change type="feature">
65+
<para>
66+
forwarded header to replace client address and protocol.
67+
</para>
68+
</change>
69+
70+
<change type="feature">
71+
<para>
72+
ability to get dynamic variables.
73+
</para>
74+
</change>
75+
76+
<change type="feature">
77+
<para>
78+
support for abstract Unix sockets.
79+
</para>
80+
</change>
81+
82+
<change type="feature">
83+
<para>
84+
support for Unix sockets in address matching.
85+
</para>
86+
</change>
87+
88+
<change type="feature">
89+
<para>
90+
the $dollar variable translates to a literal "$" during variable substitution.
91+
</para>
92+
</change>
93+
94+
<change type="bugfix">
95+
<para>
96+
router process could crash if index file didn't contain an extension.
97+
</para>
98+
</change>
99+
100+
<change type="bugfix">
101+
<para>
102+
force SCRIPT_NAME in Ruby to always be an empty string.
103+
</para>
104+
</change>
105+
106+
<change type="bugfix">
107+
<para>
108+
when isolated PID numbers reach the prototype process host PID,
109+
the prototype crashed.
110+
</para>
111+
</change>
112+
113+
<change type="bugfix">
114+
<para>
115+
the Ruby application process could crash on SIGTERM.
116+
</para>
117+
</change>
118+
119+
<change type="bugfix">
120+
<para>
121+
the Ruby application process could crash on SIGINT.
122+
</para>
123+
</change>
124+
125+
<change type="bugfix">
126+
<para>
127+
mutex leak in the C API.
128+
</para>
129+
</change>
130+
131+
</changes>
132+
133+
8134
<changes apply="unit-php
9135
unit-python unit-python2.7
10136
unit-python3.4 unit-python3.5 unit-python3.6 unit-python3.7
@@ -15,7 +141,7 @@
15141
unit-jsc-common unit-jsc8 unit-jsc10 unit-jsc11 unit-jsc13
16142
unit-jsc14 unit-jsc15 unit-jsc16 unit-jsc17 unit-jsc18"
17143
ver="1.27.0" rev="1"
18-
date="" time=""
144+
date="2022-06-02" time="18:00:00 +0300"
19145
packager="Andrei Belov &lt;[email protected]&gt;">
20146

21147
<change>
@@ -28,7 +154,7 @@ NGINX Unit updated to 1.27.0.
28154

29155

30156
<changes apply="unit" ver="1.27.0" rev="1"
31-
date="" time=""
157+
date="2022-06-02" time="18:00:00 +0300"
32158
packager="Andrei Belov &lt;[email protected]&gt;">
33159

34160
<change type="feature">

docs/unitlogo.png

-28.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)