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,
followRedirect: true,
methodRewriting: false, // WARNING! this setting has a different meaning in got v12!
timeout: {
lookup: 200,
connect: 200,
secureConnect: 200,
socket: 1000,
send: 5000,
response: 1000
}
timeout: 10000
});
if (response.statusCode >= 200 && response.statusCode < 300) {
return;