16 Commits
Author SHA1 Message Date
罗泽轩 47eb6f3962 style: add a way to check PR title automatically (#846)
Signed-off-by: spacewander <[email protected]>
2022-07-04 21:09:21 +08:00
罗泽轩 20d2bd74bf upgraded lua-resty-redis to v0.29 2020-10-10 14:23:17 +08:00
罗泽轩 2894a41f02 upgraded lua-resty-limit-traffic to 0.07 2020-07-08 09:25:11 +08:00
spacewander 4debfd5a3c upgraded lua-cjson to 2.1.0.8rc1. 2020-04-01 11:46:56 -07:00
spacewanderandThibault Charbonnier cf7516fcbc optimize: added an NGINX core patch to ensure unused listening fds are closed when 'reuseport' is used.
When `reuseport` is enabled in the `listen` directive, Nginx will create
a listening fd for each worker process in the master process.

These fds will be inherited by the worker processes, but most of them
are unused. For example, considering we have 32 listening ip:port
configurations and 64 worker processes, each worker process will inherit
2048 (32 * 64) listening fds, but only 32 fds are used. By closing the
unused fds, this change could save up to 2016 (32 * 63) fds in a worker
process.

It doesn't affect the listening socket, since there is only one used fd
which associates to the socket with or without this change.

Co-authored-by: Thibault Charbonnier <[email protected]>
2019-08-05 18:54:51 -07:00
spacewander 34918a30c3 bugfix: support yielding in 'certificate_by_lua_*' when 'ssl_early_data' is on.
Signed-off-by: Thibault Charbonnier <[email protected]>
2019-07-17 16:25:50 -07:00
spacewander 2e480157a3 feature: supported OpenSSL 1.1.1 by upgrading the OpenSSL patch.
Previously, we used the OpenSSL 1.1.1 ClientHello callback to do ssl
session fetching non-blockingly. However, this way cannot handle an edge
case: the ssl session resumption via session ticket might fail, and the
client fallbacks to session ID resumption. The ClientHello callback is
run too early to know if the client will fallback to use session ID
resumption.

Therefore, we have to take back the OpenSSL sess_set_get_cb_yield patch
and upgrade it to adapt OpenSSL 1.1.1.

Thanks Yongjian Xu and crasyangel for their help.

See 08e9e50.

Signed-off-by: Thibault Charbonnier <[email protected]>
2019-07-17 11:03:34 -07:00
spacewander 9e834398de feature: updated the NGINX patches for async SSL session fetching to support OpenSSL 1.1.1.
The patch was also renamed from `ssl_pending_session.patch` to
`ssl_sess_cb_yield.patch` (similarly to the existing
`ssl_cert_cb_yield.patch` one).

Signed-off-by: Thibault Charbonnier <[email protected]>
2019-06-04 16:40:22 -07:00
spacewander 2879e59e7b feature: updated the socket_cloexec patches to support the ngx.pipe API.
Signed-off-by: Thibault Charbonnier <[email protected]>
2019-01-29 17:45:47 -08:00
spacewander a4f399b3ac feature: added the socket_cloexec patch to ensure most of the nginx connections could be closed before child process terminates.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2018-03-27 13:46:01 -07:00
spacewander ee6b26e347 feature: added the sess_set_get_cb_yield patch for OpenSSL 1.1.0d and beyond.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2018-01-05 23:38:32 -08:00
spacewander e777a35db3 feature: shipped openssl-1.1.0c patch with the source release tarball.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2018-01-05 14:42:03 -08:00
spacewander a0dc14761a feature: added the sess_set_get_cb_yield patch for OpenSSL 1.1.0c and beyond.
The patch is based on

https://patch-diff.githubusercontent.com/raw/openssl/openssl/pull/1588.patch,

with some minor modifications.

Thanks Alessandro Ghedini for the ground work.

Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2018-01-05 14:41:47 -08:00
spacewander 2cc5ba6c91 bugfix: we removed the existing Makefile even for ./configure --help.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2017-12-09 11:42:32 -08:00
spacewander 2223edb87d misc: added templates for issue and pull request.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2017-07-25 14:57:32 -07:00
spacewander adcff66454 feature: applied a patch to the nginx core to make the nginx variable $proxy_add_x_forwarded_for accessible on Lua land.
Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
2017-07-16 10:51:28 -07:00