Projet

Général

Profil

0003-emails-validators-set-connection-timeout-32435.patch

Christophe Siraut, 18 avril 2019 12:41

Télécharger (843 octets)

Voir les différences:

Subject: [PATCH 3/6] emails/validators: set connection timeout (#32435)

 hobo/emails/validators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hobo/emails/validators.py
30 30
        raise ValidationError(_('Error: %s') % str(e))
31 31
    except dns.resolver.NoAnswer as e:
32 32
        raise ValidationError(_('Error: %s') % str(e))
33
    smtp = smtplib.SMTP(timeout=30)
33
    smtp = smtplib.SMTP(timeout=10)
34 34
    try:
35 35
        smtp.connect(mx_server)
36 36
    except socket.error as e:
37
-