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:
parent
750b524771
commit
e0be5ef01b
2 changed files with 2 additions and 0 deletions
services/web/app/coffee/Features
|
@ -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
|
Loading…
Reference in a new issue