Skip to content

Commit e22669f

Browse files
committed
Merged with the default branch.
2 parents a1d2848 + 4409a10 commit e22669f

File tree

175 files changed

+6357
-1373
lines changed

Some content is hidden

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

175 files changed

+6357
-1373
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.c diff=cpp
2+
*.h diff=cpp

.hgtags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ aa207ced9712132040e6153ceccdaf04c112d02c 1.25.0-1
6363
069c16dd4ed34d49584028b25f5cba4a4a2eded6 1.26.1-1
6464
8a9055cbe4ffd450fac4d7a849c00e0db5485ad3 1.27.0
6565
e7df1cfec95945265a33f7085fbd313b4dd207fd 1.27.0-1
66+
ea073fb3cb75abfb4be5dc12402de73e0c20da60 1.28.0
6667
16e01c5fead470d8f630613b973a50a33fd0d0f2 1.28.0-1
68+
37cac7fec92e5656d8a03a8594ade131c3391f45 1.29.0

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+

CHANGES

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

2+
Changes with Unit 1.29.0 15 Dec 2022
3+
4+
*) Change: removed $uri auto-append for "share" when loading
5+
configuration.
6+
7+
*) Change: prefer system crypto policy instead of hardcoding a default.
8+
9+
*) Feature: njs support with the basic syntax of JS template literals.
10+
11+
*) Feature: support per-application cgroups on Linux.
12+
13+
*) Feature: the $request_time variable contains the request processing
14+
time.
15+
16+
*) Feature: "prefix" option in Python applications to set WSGI
17+
"SCRIPT_NAME" and ASGI root-path variables.
18+
19+
*) Feature: compatibility with Python 3.11.
20+
21+
*) Feature: compatibility with OpenSSL 3.
22+
23+
*) Feature: compatibility with PHP 8.2.
24+
25+
*) Feature: compatibility with Node.js 19.0.
26+
27+
*) Feature: Ruby Rack v3 support.
28+
29+
*) Bugfix: fix error in connection statistics when using proxy.
30+
31+
*) Bugfix: fix HTTP cookie parsing when the value contains an equals
32+
sign.
33+
34+
*) Bugfix: PHP directory URLs without a trailing '/' would give a 503
35+
error (fixed with a 301 re-direct).
36+
37+
*) Bugfix: missing error checks in the C API.
38+
39+
*) Bugfix: report the regex status in configure summary.
40+
41+
242
Changes with Unit 1.28.0 13 Sep 2022
343

444
*) Change: increased the applications' startup timeout.

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ For a description of image tags, see the
5050
### Amazon Linux, Fedora, RedHat
5151

5252
``` console
53-
$ curl -sL 'https://unit.nginx.org/_downloads/setup-unit.sh' | sudo -E bash
54-
# yum install unit
53+
$ wget https://raw.githubusercontent.com/nginx/unit/master/tools/setup-unit && chmod +x setup-unit
54+
# ./setup-unit repo-config && yum install unit
55+
# ./setup-unit welcome
5556
```
5657

5758
For details and available language packages, see the
@@ -61,8 +62,9 @@ For details and available language packages, see the
6162
### Debian, Ubuntu
6263

6364
``` console
64-
$ curl -sL 'https://unit.nginx.org/_downloads/setup-unit.sh' | sudo -E bash
65-
# apt install unit
65+
$ wget https://raw.githubusercontent.com/nginx/unit/master/tools/setup-unit && chmod +x setup-unit
66+
# ./setup-unit repo-config && apt install unit
67+
# ./setup-unit welcome
6668
```
6769

6870
For details and available language packages, see the
@@ -91,7 +93,7 @@ application object. Let's store our first config snippet in a file called
9193

9294
Saving it as a file isn't necessary, but can come in handy with larger objects.
9395

94-
Now, `PUT` it into the `config/applications` section of Unit's control API,
96+
Now, `PUT` it into the `/config/applications` section of Unit's control API,
9597
usually available by default via a Unix domain socket:
9698

9799
``` console
@@ -105,7 +107,7 @@ usually available by default via a Unix domain socket:
105107
}
106108
```
107109

108-
Next, reference the app from a listener object in the `config/listeners`
110+
Next, reference the app from a listener object in the `/config/listeners`
109111
section of the API. This time, we pass the config snippet straight from the
110112
command line:
111113

SECURITY.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-----BEGIN PGP SIGNED MESSAGE-----
2+
Hash: SHA256
3+
4+
#
5+
# Please report security issues as below, specifically
6+
# mentioning NGINX Unit in the subject.
7+
#
8+
Canonical: https://unit.nginx.org/.well-known/security.txt
9+
Contact: mailto:[email protected]
10+
Encryption: https://nginx.org/keys/maxim.key
11+
Encryption: https://nginx.org/keys/sb.key
12+
Encryption: https://nginx.org/keys/thresh.key
13+
Expires: 2024-01-01T00:00:00.000Z
14+
Policy: https://www.first.org/cvss/v3.1/specification-document
15+
Preferred-Languages: en
16+
17+
-----BEGIN PGP SIGNATURE-----
18+
19+
iQHEBAEBCAAuFiEEE8gqY7YDV2FW4wpOoOqYG2aw2WcFAmN7X/UQHGsucGF2bG92
20+
QGY1LmNvbQAKCRCg6pgbZrDZZ4wFDADIZz5UwVUaxQ6mAfi+3Gs28NLXQp5kBILJ
21+
PC9Rhjlksufbby5yd4lh+JMZ8U2YRQ8OWne6Kl0NvZHDcP2OyBOdiBUXvnE+ZcNz
22+
ujT3JMk15l1FxKbIitUzwZ+QcXOKTqsoavPs5hrGrrJNQWLhqAH8uESDdI7AUM5R
23+
BOQ9Z6ENw3rgEtrtMNMdwt+pt2/+1cuu/4PuIuFhjYyCuS7i7tyFtbkc9BTlx03I
24+
99g9bqKltWAvxGrMi+xfFVOnTgWp0b+oKsN8jgQji1zNMSx7UmrFq8uSpNV3eR5t
25+
a4iVZQsIRUVVSYh8VkZagtbiw4WXaEnbwUgxj/4K2rNvkn5jFk+NkzSALN8/7ocp
26+
U5R5ctku511bJiwFSUkTx8nkd58bzqqQ0EHr/3uTmfXSTTZYdUXuXXCSMzuUBEOi
27+
y9n+2JFRdlEXxqwhszJxAXhs6VH2su0laX2UOMMnw6X2GFF3CU4PK0qoalWLSh47
28+
6aiL99zgqrq0IFibRTXCo1a3RPqiYB0=
29+
=GiB/
30+
-----END PGP SIGNATURE-----

auto/atomic

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nxt_feature_name=NXT_HAVE_GCC_ATOMIC
1010
nxt_feature_run=yes
1111
nxt_feature_incs=
1212
nxt_feature_libs=
13-
nxt_feature_test="int main() {
13+
nxt_feature_test="int main(void) {
1414
long n = 0;
1515

1616
if (!__sync_bool_compare_and_swap(&n, 0, 3))
@@ -44,7 +44,7 @@ if [ $nxt_found = no ]; then
4444
nxt_feature_libs=
4545
nxt_feature_test="#include <atomic.h>
4646

47-
int main() {
47+
int main(void) {
4848
ulong_t n = 0;
4949

5050
if (atomic_cas_ulong(&n, 0, 3) != 0)
@@ -70,7 +70,7 @@ fi
7070
if [ $nxt_found = no ]; then
7171

7272
if [ $NXT_64BIT = 1 ]; then
73-
nxt_feature_test="int main() {
73+
nxt_feature_test="int main(void) {
7474
long n = 0;
7575
long o = 0;
7676

@@ -87,7 +87,7 @@ if [ $nxt_found = no ]; then
8787
return 0;
8888
}"
8989
else
90-
nxt_feature_test="int main() {
90+
nxt_feature_test="int main(void) {
9191
int n = 0;
9292
int o = 0;
9393

auto/capability

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nxt_feature_test="#include <linux/capability.h>
1010
#include <unistd.h>
1111
#include <sys/syscall.h>
1212

13-
int main() {
13+
int main(void) {
1414
struct __user_cap_header_struct hdr;
1515
hdr.version = _LINUX_CAPABILITY_VERSION;
1616
syscall(SYS_capget, &hdr, 0);

auto/cgroup

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) Andrew Clayton
2+
# Copyright (C) F5, Inc.
3+
4+
NXT_HAVE_CGROUP=NO
5+
6+
if [ -f "/proc/mounts" ]; then
7+
CGROUP=$(grep cgroup2 /proc/mounts | head -n 1 | cut -d " " -f 2)
8+
9+
if [ "$CGROUP" ]; then
10+
NXT_HAVE_CGROUP=YES
11+
12+
cat << END >> $NXT_AUTO_CONFIG_H
13+
14+
#ifndef NXT_HAVE_CGROUP
15+
#define NXT_HAVE_CGROUP 1
16+
#define NXT_CGROUP_ROOT "$CGROUP"
17+
#endif
18+
19+
END
20+
21+
fi
22+
fi

auto/clang

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ nxt_feature_libs=
1414
nxt_feature_test="#include <stdio.h>
1515
#define set(dummy, ...) sprintf(__VA_ARGS__)
1616

17-
int main() {
17+
int main(void) {
1818
char buf[4];
1919

2020
buf[0] = '0';
@@ -37,7 +37,7 @@ if [ $nxt_found = no ]; then
3737
nxt_feature_test="#include <stdio.h>
3838
#define set(dummy, args...) sprintf(args)
3939

40-
int main() {
40+
int main(void) {
4141
char buf[4];
4242

4343
buf[0] = '0';
@@ -70,7 +70,7 @@ nxt_feature_name=NXT_HAVE_BUILTIN_UNREACHABLE
7070
nxt_feature_run=no
7171
nxt_feature_incs=
7272
nxt_feature_libs=
73-
nxt_feature_test="int main() {
73+
nxt_feature_test="int main(void) {
7474
__builtin_unreachable();
7575
}"
7676
. auto/feature
@@ -81,7 +81,7 @@ nxt_feature_name=NXT_HAVE_BUILTIN_PREFETCH
8181
nxt_feature_run=no
8282
nxt_feature_incs=
8383
nxt_feature_libs=
84-
nxt_feature_test="int main() {
84+
nxt_feature_test="int main(void) {
8585
__builtin_prefetch(0);
8686
return 0;
8787
}"
@@ -93,7 +93,7 @@ nxt_feature_name=NXT_HAVE_BUILTIN_CLZ
9393
nxt_feature_run=
9494
nxt_feature_incs=
9595
nxt_feature_libs=
96-
nxt_feature_test="int main() {
96+
nxt_feature_test="int main(void) {
9797
if (__builtin_clz(1) == 31)
9898
return 0;
9999
return 1;
@@ -106,7 +106,7 @@ nxt_feature_name=NXT_HAVE_BUILTIN_POPCOUNT
106106
nxt_feature_run=
107107
nxt_feature_incs=
108108
nxt_feature_libs=
109-
nxt_feature_test="int main() {
109+
nxt_feature_test="int main(void) {
110110
if (__builtin_popcount(5) == 2)
111111
return 0;
112112
return 1;
@@ -121,7 +121,7 @@ nxt_feature_incs=
121121
nxt_feature_libs=
122122
nxt_feature_test="int n __attribute__ ((visibility(\"default\")));
123123

124-
int main() {
124+
int main(void) {
125125
return 1;
126126
}"
127127
. auto/feature
@@ -134,7 +134,7 @@ nxt_feature_incs=
134134
nxt_feature_libs=
135135
nxt_feature_test="int n __attribute__ ((aligned(64)));
136136

137-
int main() {
137+
int main(void) {
138138
return 1;
139139
}"
140140
. auto/feature
@@ -153,7 +153,7 @@ nxt_feature_test="#include <stdlib.h>
153153
return malloc(1);
154154
}
155155

156-
int main() {
156+
int main(void) {
157157
if (f() != NULL) {
158158
return 1;
159159
}
@@ -172,7 +172,7 @@ nxt_feature_test="struct s {
172172
int i;
173173
} __attribute__ ((__packed__));
174174

175-
int main() {
175+
int main(void) {
176176
return 1;
177177
}"
178178
. auto/feature

0 commit comments

Comments
 (0)