From 569c922eb073da6693f7f8e950b5d2b7caea2899 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 21 Apr 2020 00:04:47 -0600 Subject: [PATCH] add timeout to maintainer request --- maintainers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maintainers.js b/maintainers.js index 61719a1..4b7d0c8 100644 --- a/maintainers.js +++ b/maintainers.js @@ -36,6 +36,7 @@ M._init = function(me, tz, locale) { setTimeout(function() { // prevent a stampede from misconfigured clients in an eternal loop me.request({ + timeout: 3000, method: 'GET', url: 'https://api.rootprojects.org/api/nonce', json: true @@ -47,6 +48,7 @@ M._init = function(me, tz, locale) { }) .then(function(hashcash) { var req = { + timeout: 3000, headers: { 'x-root-nonce-v1': hashcash },