mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Squashed 'src/deps/src/stream-lua-nginx-module/' changes from 982ce52831..69f0cd7621
69f0cd7621 bugfix: failed to build on windows. bfff61e559 tests: bumped the NGINX core to 1.27.1. de12cb63c0 feature: update nginx to v1.27.1. git-subtree-dir: src/deps/src/stream-lua-nginx-module git-subtree-split: 69f0cd762112a6e0cddb07f2b5192e9a65034a93
This commit is contained in:
parent
e36d18ca47
commit
f0c1525bdb
2 changed files with 6 additions and 4 deletions
|
|
@ -44,8 +44,8 @@ env:
|
|||
- TEST_NGINX_SLEEP=0.006
|
||||
matrix:
|
||||
#- NGINX_VERSION=1.21.4 OPENSSL_VER=1.1.12
|
||||
- NGINX_VERSION=1.27.0 OPENSSL_VER=1.1.1w
|
||||
- NGINX_VERSION=1.27.0 OPENSSL_VER=1.1.1w USE_PCRE2=Y
|
||||
- NGINX_VERSION=1.27.1 OPENSSL_VER=1.1.1w
|
||||
- NGINX_VERSION=1.27.1 OPENSSL_VER=1.1.1w USE_PCRE2=Y
|
||||
|
||||
services:
|
||||
- memcache
|
||||
|
|
|
|||
|
|
@ -5595,6 +5595,7 @@ ngx_stream_lua_socket_keepalive_close_handler(ngx_event_t *ev)
|
|||
ngx_stream_lua_socket_pool_t *spool;
|
||||
|
||||
int n;
|
||||
int err;
|
||||
char buf[1];
|
||||
ngx_connection_t *c;
|
||||
|
||||
|
|
@ -5618,18 +5619,19 @@ ngx_stream_lua_socket_keepalive_close_handler(ngx_event_t *ev)
|
|||
"check stale events");
|
||||
|
||||
n = recv(c->fd, buf, 1, MSG_PEEK);
|
||||
err = ngx_socket_errno;
|
||||
#if (NGX_STREAM_SSL)
|
||||
/* ignore ssl protocol data like change cipher spec */
|
||||
if (n == 1 && c->ssl != NULL) {
|
||||
n = c->recv(c, (unsigned char *) buf, 1);
|
||||
if (n == NGX_AGAIN) {
|
||||
n = -1;
|
||||
ngx_socket_errno = NGX_EAGAIN;
|
||||
err = NGX_EAGAIN;
|
||||
}
|
||||
}
|
||||
#endif /* NGX_STREAM_SSL */
|
||||
|
||||
if (n == -1 && ngx_socket_errno == NGX_EAGAIN) {
|
||||
if (n == -1 && err == NGX_EAGAIN) {
|
||||
/* stale event */
|
||||
|
||||
if (ngx_handle_read_event(c->read, 0) != NGX_OK) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue