mod_auth_oauth_external: Enable experimental http connection pooling
Connection pooling may provide a performance boost since it does a few
requests per authentication.
--- a/mod_auth_oauth_external/mod_auth_oauth_external.lua Sat Nov 11 23:55:44 2023 +0100
+++ b/mod_auth_oauth_external/mod_auth_oauth_external.lua Sun Nov 12 02:35:34 2023 +0100
@@ -58,7 +58,7 @@
function provider.get_sasl_handler()
local profile = {};
- profile.http_client = http.default; -- TODO configurable
+ profile.http_client = http.new({ connection_pooling = true }); -- TODO configurable
local extra = { oidc_discovery_url = oidc_discovery_url };
if token_endpoint and allow_plain then
local map_username = function (username, _realm) return username; end; --jid.join; -- TODO configurable