1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-03-22 02:04:31 +00:00

added timeouts to email and newsletter as after a few days there are a few open connections still

This commit is contained in:
Henry Oswald 2014-06-17 18:18:45 +01:00
parent 750b524771
commit e0be5ef01b
2 changed files with 2 additions and 0 deletions
services/web/app/coffee/Features

View file

@ -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"

View file

@ -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