Added timeout to external requests

no refs

- got doesn't have a timeout by default
- we think we might have hanging jobs because of this
This commit is contained in:
Steve Larson 2023-02-16 11:30:23 -06:00 committed by Daniel Lockyer
parent 9a2d765c73
commit 5d00b64e27
No known key found for this signature in database

View File

@ -42,6 +42,7 @@ const externalRequest = got.extend({
headers: {
'user-agent': 'Ghost(https://github.com/TryGhost/Ghost)'
},
timeout: 10000, // default is no timeout
hooks: {
init: [(options) => {
if (!options.hostname || !validator.isURL(options.hostname)) {