# HG changeset patch # User Kim Alvefur # Date 1699752934 -3600 # Node ID 0207fd24848034af497911a7043e287d2323ad0a # Parent 9de7a1b36efb095dc4dd7a86c75b61419953044b mod_auth_oauth_external: Enable experimental http connection pooling Connection pooling may provide a performance boost since it does a few requests per authentication. diff -r 9de7a1b36efb -r 0207fd248480 mod_auth_oauth_external/mod_auth_oauth_external.lua --- 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