From 25d6ef432b15875ba2a6a6accd99aa5dc427702c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 16 Dec 2024 22:38:10 -0500 Subject: [PATCH] fix: add 10s timeout for AP message send --- src/activitypub/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index 044a986da9..f57a39e322 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -330,6 +330,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) { 'content-type': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', }, body: payload, + timeout: 10000, // configurable? }); if (String(response.statusCode).startsWith('2')) {