Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Adds a print for timing out http requests after the retry.
damenchoa1ebcd559b6e
diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.luaindex 1da59a24dc..faeeabc32a 100644--- a/resources/prosody-plugins/token/util.lib.lua+++ b/resources/prosody-plugins/token/util.lib.lua@@ -175,19 +175,25 @@ end-- @return the public key (the content of requested resource) or nilfunction Util:get_public_key(keyId)local content = self.cache:get(keyId);+ local code;if content == nil then-- If the key is not found in the cache.- module:log("debug", "Cache miss for key: %s", keyId);+ -- module:log("debug", "Cache miss for key: %s", keyId);local keyurl = path.join(self.asapKeyServer, hex.to(sha256(keyId))..'.pem');- module:log("debug", "Fetching public key from: %s", keyurl);- content = http_get_with_retry(keyurl, nr_retries);+ -- module:log("debug", "Fetching public key from: %s", keyurl);+ content, code = http_get_with_retry(keyurl, nr_retries);if content ~= nil thenself.cache:set(keyId, content);+ else+ if code == nil then+ -- this is timout after nr_retries retries+ module:log('warn', 'Timeout retrieving %s from %s', keyId, keyurl);+ endendreturn content;else-- If the key is in the cache, use it.- module:log("debug", "Cache hit for key: %s", keyId);+ -- module:log("debug", "Cache hit for key: %s", keyId);return content;endend