Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): raise the default size limit of cosocket connection pool fr… #11268

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kong.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@
#
# See https://github.com/openresty/lua-nginx-module#lua_package_cpath

#lua_socket_pool_size = 30 # Specifies the size limit for every cosocket
#lua_socket_pool_size = 256 # Specifies the size limit for every cosocket
# connection pool associated with every remote
# server.
#
Expand Down
2 changes: 1 addition & 1 deletion kong/templates/kong_defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ worker_state_update_frequency = 5

router_flavor = traditional_compatible

lua_socket_pool_size = 30
lua_socket_pool_size = 256
lua_ssl_trusted_certificate = system
lua_ssl_verify_depth = 1
lua_ssl_protocols = TLSv1.1 TLSv1.2 TLSv1.3
Expand Down
2 changes: 1 addition & 1 deletion spec/01-unit/03-conf_loader_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ describe("Configuration loader", function()
it("infer booleans (on/off/true/false strings)", function()
local conf = assert(conf_loader())
assert.equal("on", conf.nginx_main_daemon)
assert.equal(30, conf.lua_socket_pool_size)
assert.equal(256, conf.lua_socket_pool_size)
assert.True(conf.anonymous_reports)
assert.False(conf.pg_ssl)
assert.False(conf.pg_ssl_verify)
Expand Down
Loading