Software /
code /
prosody-modules
Changeset
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 |
parents | 5723:9de7a1b36efb |
children | 5725:616c0459aca7 |
files | mod_auth_oauth_external/mod_auth_oauth_external.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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