Software /
code /
prosody-modules
Diff
mod_auth_oauth_external/mod_auth_oauth_external.lua @ 5724:0207fd248480
mod_auth_oauth_external: Enable experimental http connection pooling
Connection pooling may provide a performance boost since it does a few
requests per authentication.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Nov 2023 02:35:34 +0100 |
parent | 5443:4e79f344ae2f |
child | 5753:6592c444e85c |
line wrap: on
line diff
--- 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