added timeouts to email and newsletter as after a few days there are a few open connections still
This commit is contained in:
@@ -35,6 +35,7 @@ module.exports =
|
||||
subject: options.subject
|
||||
html: options.html
|
||||
replyTo: options.replyTo || Settings.email.replyToAddress
|
||||
socketTimeout: 30 * 1000
|
||||
client.sendMail options, (err, res)->
|
||||
if err?
|
||||
logger.err err:err, "error sending message"
|
||||
|
||||
@@ -33,4 +33,5 @@ buildOptions = (user, is_subscribed)->
|
||||
subscriber_list_id: Settings.markdownmail.list_id
|
||||
is_subscribed: is_subscribed
|
||||
url: "https://www.markdownmail.io/lists/subscribe"
|
||||
timeout: 30 * 1000
|
||||
return options
|
||||
Reference in New Issue
Block a user