Skip to content

Commit 5b6f78c

Browse files
authored
Merge pull request #1541 from lianglli/master
Updated core file to Nginx-1.18.0.
2 parents ca26648 + dd4b208 commit 5b6f78c

Some content is hidden

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

64 files changed

+1799
-508
lines changed

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Tengine has been an open source project since December 2011. It is being activel
99
Features
1010
========
1111

12-
* All features of nginx-1.17.3 are inherited, i.e., it is 100% compatible with nginx.
12+
* All features of nginx-1.18.0 are inherited, i.e., it is 100% compatible with nginx.
1313
* Support the CONNECT HTTP method for forward proxy.
1414
* Support asynchronous OpenSSL, using hardware such as QAT for HTTPS acceleration.
1515
* Enhanced operations monitoring, such as asynchronous log & rollback, DNS caching, memory usage, etc.

auto/lib/openssl/conf

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ with nginx by using --with-openssl=<path> option.
138138
END
139139
exit 1
140140
fi
141+
141142
fi
142143

143144

auto/modules

+2-17
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,6 @@ if [ $HTTP = YES ]; then
113113
fi
114114

115115

116-
if [ $HTTP_SSI = YES ]; then
117-
HTTP_POSTPONE=YES
118-
fi
119-
120-
121-
if [ $HTTP_SLICE = YES ]; then
122-
HTTP_POSTPONE=YES
123-
fi
124-
125-
126-
if [ $HTTP_ADDITION = YES ]; then
127-
HTTP_POSTPONE=YES
128-
fi
129-
130-
131116
# the module order is important
132117
# ngx_http_static_module
133118
# ngx_http_gzip_static_module
@@ -263,13 +248,13 @@ if [ $HTTP = YES ]; then
263248
. auto/module
264249
fi
265250

266-
if [ $HTTP_POSTPONE = YES ]; then
251+
if :; then
267252
ngx_module_name=ngx_http_postpone_filter_module
268253
ngx_module_incs=
269254
ngx_module_deps=
270255
ngx_module_srcs=src/http/ngx_http_postpone_filter_module.c
271256
ngx_module_libs=
272-
ngx_module_link=$HTTP_POSTPONE
257+
ngx_module_link=YES
273258

274259
. auto/module
275260
fi

auto/options

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ HTTP_GZIP=YES
6161
HTTP_SSL=YES
6262
HTTP_V2=NO
6363
HTTP_SSI=YES
64-
HTTP_POSTPONE=NO
6564
HTTP_REALIP=NO
6665
HTTP_XSLT=NO
6766
HTTP_IMAGE_FILTER=NO

auto/unix

+12
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,18 @@ ngx_feature_test="int i = FIONBIO; printf(\"%d\", i)"
943943
. auto/feature
944944

945945

946+
ngx_feature="ioctl(FIONREAD)"
947+
ngx_feature_name="NGX_HAVE_FIONREAD"
948+
ngx_feature_run=no
949+
ngx_feature_incs="#include <sys/ioctl.h>
950+
#include <stdio.h>
951+
$NGX_INCLUDE_SYS_FILIO_H"
952+
ngx_feature_path=
953+
ngx_feature_libs=
954+
ngx_feature_test="int i = FIONREAD; printf(\"%d\", i)"
955+
. auto/feature
956+
957+
946958
ngx_feature="struct tm.tm_gmtoff"
947959
ngx_feature_name="NGX_HAVE_GMTOFF"
948960
ngx_feature_run=no

contrib/vim/ftplugin/nginx.vim

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
setlocal commentstring=#\ %s

contrib/vim/syntax/nginx.vim

+5
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ syn keyword ngxDirective contained js_access
333333
syn keyword ngxDirective contained js_content
334334
syn keyword ngxDirective contained js_filter
335335
syn keyword ngxDirective contained js_include
336+
syn keyword ngxDirective contained js_path
336337
syn keyword ngxDirective contained js_preread
337338
syn keyword ngxDirective contained js_set
338339
syn keyword ngxDirective contained keepalive
@@ -353,6 +354,7 @@ syn keyword ngxDirective contained limit_conn_zone
353354
syn keyword ngxDirective contained limit_rate
354355
syn keyword ngxDirective contained limit_rate_after
355356
syn keyword ngxDirective contained limit_req
357+
syn keyword ngxDirective contained limit_req_dry_run
356358
syn keyword ngxDirective contained limit_req_log_level
357359
syn keyword ngxDirective contained limit_req_status
358360
syn keyword ngxDirective contained limit_req_zone
@@ -472,6 +474,7 @@ syn keyword ngxDirective contained proxy_requests
472474
syn keyword ngxDirective contained proxy_responses
473475
syn keyword ngxDirective contained proxy_send_lowat
474476
syn keyword ngxDirective contained proxy_send_timeout
477+
syn keyword ngxDirective contained proxy_session_drop
475478
syn keyword ngxDirective contained proxy_set_body
476479
syn keyword ngxDirective contained proxy_set_header
477480
syn keyword ngxDirective contained proxy_socket_keepalive
@@ -1325,6 +1328,7 @@ syn keyword ngxDirectiveThirdParty contained lua_check_client_abort
13251328
syn keyword ngxDirectiveThirdParty contained lua_code_cache
13261329
syn keyword ngxDirectiveThirdParty contained lua_fake_shm
13271330
syn keyword ngxDirectiveThirdParty contained lua_http10_buffering
1331+
syn keyword ngxDirectiveThirdParty contained lua_load_resty_core
13281332
syn keyword ngxDirectiveThirdParty contained lua_malloc_trim
13291333
syn keyword ngxDirectiveThirdParty contained lua_max_pending_timers
13301334
syn keyword ngxDirectiveThirdParty contained lua_max_running_timers
@@ -1779,6 +1783,7 @@ syn keyword ngxDirectiveThirdParty contained vod_expires_live_time_dependent
17791783
syn keyword ngxDirectiveThirdParty contained vod_fallback_upstream_location
17801784
syn keyword ngxDirectiveThirdParty contained vod_force_continuous_timestamps
17811785
syn keyword ngxDirectiveThirdParty contained vod_force_playlist_type_vod
1786+
syn keyword ngxDirectiveThirdParty contained vod_force_sequence_index
17821787
syn keyword ngxDirectiveThirdParty contained vod_gop_look_ahead
17831788
syn keyword ngxDirectiveThirdParty contained vod_gop_look_behind
17841789
syn keyword ngxDirectiveThirdParty contained vod_ignore_edit_list

src/core/nginx.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#define _NGINX_H_INCLUDED_
1010

1111

12-
#define nginx_version 1017003
13-
#define NGINX_VERSION "1.17.3"
12+
#define nginx_version 1018000
13+
#define NGINX_VERSION "1.18.0"
1414
#define NGINX_VER "nginx/" NGINX_VERSION
1515

1616
#define TENGINE "Tengine"

src/core/ngx_conf_file.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#define NGX_DIRECT_CONF 0x00010000
5050

5151
#define NGX_MAIN_CONF 0x01000000
52-
#define NGX_ANY_CONF 0x1F000000
52+
#define NGX_ANY_CONF 0xFF000000
5353

5454

5555

src/core/ngx_connection.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ struct ngx_connection_s {
159159
socklen_t socklen;
160160
ngx_str_t addr_text;
161161

162-
ngx_str_t proxy_protocol_addr;
163-
in_port_t proxy_protocol_port;
162+
ngx_proxy_protocol_t *proxy_protocol;
164163

165164
#if (NGX_SSL || NGX_COMPAT)
166165
ngx_ssl_connection_t *ssl;

src/core/ngx_core.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ typedef struct ngx_event_aio_s ngx_event_aio_t;
2626
typedef struct ngx_connection_s ngx_connection_t;
2727
typedef struct ngx_thread_task_s ngx_thread_task_t;
2828
typedef struct ngx_ssl_s ngx_ssl_t;
29+
typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t;
2930
typedef struct ngx_ssl_connection_s ngx_ssl_connection_t;
3031
typedef struct ngx_udp_connection_s ngx_udp_connection_t;
3132

src/core/ngx_inet.c

+1
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,7 @@ ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u)
16331633

16341634
#endif /* NGX_HAVE_GETADDRINFO && NGX_HAVE_INET6 */
16351635

1636+
16361637
static ngx_int_t
16371638
ngx_inet_add_addr(ngx_pool_t *pool, ngx_url_t *u, struct sockaddr *sockaddr,
16381639
socklen_t socklen, ngx_uint_t total)

0 commit comments

Comments
 (0)