0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Improved MentionSendingService timeout

no issue

The current timeouts were unreliable.
This commit is contained in:
Simon Backx 2023-01-20 11:46:18 +01:00
parent 8895d22602
commit 8c9893e568

View file

@ -70,14 +70,7 @@ module.exports = class MentionSendingService {
maxRedirects: 10, maxRedirects: 10,
followRedirect: true, followRedirect: true,
methodRewriting: false, // WARNING! this setting has a different meaning in got v12! methodRewriting: false, // WARNING! this setting has a different meaning in got v12!
timeout: { timeout: 10000
lookup: 200,
connect: 200,
secureConnect: 200,
socket: 1000,
send: 5000,
response: 1000
}
}); });
if (response.statusCode >= 200 && response.statusCode < 300) { if (response.statusCode >= 200 && response.statusCode < 300) {
return; return;