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:
parent
8895d22602
commit
8c9893e568
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue