Commit 685810c3 authored by Julien Muchembled's avatar Julien Muchembled

fixup! MailHost: Set SMTP socket timeout to 16s (#20161019-4A3BD2)

See commit ec3c9cbc.
parent 248940fe
...@@ -39,7 +39,7 @@ MailBase__makeMailer = MailBase._makeMailer ...@@ -39,7 +39,7 @@ MailBase__makeMailer = MailBase._makeMailer
def _makeMailer(self): def _makeMailer(self):
""" Create a SMTPMailer """ """ Create a SMTPMailer """
smtp_mailer = MailBase__makeMailer(self) smtp_mailer = MailBase__makeMailer(self)
smtp_mailer.SMTP = partial(smtp_mailer.smtp, timeout=self.smtp_socket_timeout) smtp_mailer.smtp = partial(smtp_mailer.smtp, timeout=self.smtp_socket_timeout)
return smtp_mailer return smtp_mailer
MailBase._makeMailer = _makeMailer MailBase._makeMailer = _makeMailer
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment