Latest update - 7249
This commit is contained in:
+14
-7
@@ -41,6 +41,7 @@ if [ $OPENSSL != NONE ]; then
|
|||||||
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
|
||||||
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
|
||||||
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
|
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
|
||||||
|
CORE_LIBS="$CORE_LIBS $NGX_LIBPTHREAD"
|
||||||
|
|
||||||
if [ "$NGX_PLATFORM" = win32 ]; then
|
if [ "$NGX_PLATFORM" = win32 ]; then
|
||||||
CORE_LIBS="$CORE_LIBS -lgdi32 -lcrypt32 -lws2_32"
|
CORE_LIBS="$CORE_LIBS -lgdi32 -lcrypt32 -lws2_32"
|
||||||
@@ -59,7 +60,7 @@ else
|
|||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
ngx_feature_incs="#include <openssl/ssl.h>"
|
ngx_feature_incs="#include <openssl/ssl.h>"
|
||||||
ngx_feature_path=
|
ngx_feature_path=
|
||||||
ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL $NGX_LIBPTHREAD"
|
||||||
ngx_feature_test="SSL_CTX_set_options(NULL, 0)"
|
ngx_feature_test="SSL_CTX_set_options(NULL, 0)"
|
||||||
. auto/feature
|
. auto/feature
|
||||||
|
|
||||||
@@ -71,11 +72,13 @@ else
|
|||||||
ngx_feature_path="/usr/local/include"
|
ngx_feature_path="/usr/local/include"
|
||||||
|
|
||||||
if [ $NGX_RPATH = YES ]; then
|
if [ $NGX_RPATH = YES ]; then
|
||||||
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lssl -lcrypto"
|
||||||
else
|
else
|
||||||
ngx_feature_libs="-L/usr/local/lib -lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-L/usr/local/lib -lssl -lcrypto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD"
|
||||||
|
|
||||||
. auto/feature
|
. auto/feature
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -87,11 +90,13 @@ else
|
|||||||
ngx_feature_path="/usr/pkg/include"
|
ngx_feature_path="/usr/pkg/include"
|
||||||
|
|
||||||
if [ $NGX_RPATH = YES ]; then
|
if [ $NGX_RPATH = YES ]; then
|
||||||
ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lssl -lcrypto"
|
||||||
else
|
else
|
||||||
ngx_feature_libs="-L/usr/pkg/lib -lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-L/usr/pkg/lib -lssl -lcrypto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD"
|
||||||
|
|
||||||
. auto/feature
|
. auto/feature
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -103,11 +108,13 @@ else
|
|||||||
ngx_feature_path="/opt/local/include"
|
ngx_feature_path="/opt/local/include"
|
||||||
|
|
||||||
if [ $NGX_RPATH = YES ]; then
|
if [ $NGX_RPATH = YES ]; then
|
||||||
ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto"
|
||||||
else
|
else
|
||||||
ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto $NGX_LIBDL"
|
ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD"
|
||||||
|
|
||||||
. auto/feature
|
. auto/feature
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ END
|
|||||||
$OPENSSL/.openssl/include/openssl/ssl.h: $NGX_MAKEFILE
|
$OPENSSL/.openssl/include/openssl/ssl.h: $NGX_MAKEFILE
|
||||||
cd $OPENSSL \\
|
cd $OPENSSL \\
|
||||||
&& if [ -f Makefile ]; then \$(MAKE) clean; fi \\
|
&& if [ -f Makefile ]; then \$(MAKE) clean; fi \\
|
||||||
&& ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
|
&& ./config --prefix=$ngx_prefix no-shared no-threads $OPENSSL_OPT \\
|
||||||
&& \$(MAKE) \\
|
&& \$(MAKE) \\
|
||||||
&& \$(MAKE) install_sw LIBDIR=lib
|
&& \$(MAKE) install_sw LIBDIR=lib
|
||||||
|
|
||||||
|
|||||||
@@ -17,4 +17,5 @@ END
|
|||||||
CORE_DEPS="$CORE_DEPS $THREAD_POOL_DEPS"
|
CORE_DEPS="$CORE_DEPS $THREAD_POOL_DEPS"
|
||||||
CORE_SRCS="$CORE_SRCS $THREAD_POOL_SRCS"
|
CORE_SRCS="$CORE_SRCS $THREAD_POOL_SRCS"
|
||||||
CORE_LIBS="$CORE_LIBS -lpthread"
|
CORE_LIBS="$CORE_LIBS -lpthread"
|
||||||
|
NGX_LIBPTHREAD="-lpthread"
|
||||||
fi
|
fi
|
||||||
@@ -901,6 +901,7 @@ if [ $ngx_found = no ]; then
|
|||||||
|
|
||||||
if [ $ngx_found = yes ]; then
|
if [ $ngx_found = yes ]; then
|
||||||
CORE_LIBS="$CORE_LIBS -lpthread"
|
CORE_LIBS="$CORE_LIBS -lpthread"
|
||||||
|
NGX_LIBPTHREAD="-lpthread"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -985,8 +985,8 @@ ngx_process_options(ngx_cycle_t *cycle)
|
|||||||
p--)
|
p--)
|
||||||
{
|
{
|
||||||
if (ngx_path_separator(*p)) {
|
if (ngx_path_separator(*p)) {
|
||||||
cycle->conf_prefix.len = p - ngx_cycle->conf_file.data + 1;
|
cycle->conf_prefix.len = p - cycle->conf_file.data + 1;
|
||||||
cycle->conf_prefix.data = ngx_cycle->conf_file.data;
|
cycle->conf_prefix.data = cycle->conf_file.data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3212,7 +3212,7 @@ ngx_http_grpc_parse_rst_stream(ngx_http_request_t *r, ngx_http_grpc_ctx_t *ctx,
|
|||||||
switch (state) {
|
switch (state) {
|
||||||
|
|
||||||
case sw_start:
|
case sw_start:
|
||||||
ctx->error = ch << 24;
|
ctx->error = (ngx_uint_t) ch << 24;
|
||||||
state = sw_error_2;
|
state = sw_error_2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -3325,7 +3325,7 @@ ngx_http_grpc_parse_goaway(ngx_http_request_t *r, ngx_http_grpc_ctx_t *ctx,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case sw_error:
|
case sw_error:
|
||||||
ctx->error = ch << 24;
|
ctx->error = (ngx_uint_t) ch << 24;
|
||||||
state = sw_error_2;
|
state = sw_error_2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -3555,7 +3555,7 @@ ngx_http_grpc_parse_settings(ngx_http_request_t *r, ngx_http_grpc_ctx_t *ctx,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case sw_value:
|
case sw_value:
|
||||||
ctx->setting_value = ch << 24;
|
ctx->setting_value = (ngx_uint_t) ch << 24;
|
||||||
state = sw_value_2;
|
state = sw_value_2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user