Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use thread-safe timeout-decorator #49

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions checkdmarc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,8 @@ def get_spf_record(domain, nameservers=None, timeout=2.0):


@timeout_decorator.timeout(5, timeout_exception=SMTPError,
exception_message="Connection timed out")
exception_message="Connection timed out",
use_signals=False)
def test_tls(hostname, ssl_context=None, cache=None):
"""
Attempt to connect to a SMTP server port 465 and validate TLS/SSL support
Expand Down Expand Up @@ -1949,7 +1950,8 @@ def test_tls(hostname, ssl_context=None, cache=None):


@timeout_decorator.timeout(5, timeout_exception=SMTPError,
exception_message="Connection timed out")
exception_message="Connection timed out",
use_signals=False)
def test_starttls(hostname, ssl_context=None, cache=None):
"""
Attempt to connect to a SMTP server and validate STARTTLS support
Expand Down