Add EMAIL_TIMEOUT

Adds EMAIL_TIMEOUT to prevent a blocking send on the tcp socket from
halting the thread handling the request.
This commit is contained in:
Dani Hodovic 2019-07-09 09:11:50 +08:00
parent 77e8cf55c4
commit 35b201a2b3
No known key found for this signature in database
GPG Key ID: 15433E10A71D1221

View File

@ -216,6 +216,8 @@ X_FRAME_OPTIONS = "DENY"
EMAIL_BACKEND = env(
"DJANGO_EMAIL_BACKEND", default="django.core.mail.backends.smtp.EmailBackend"
)
# https://docs.djangoproject.com/en/2.2/ref/settings/#email-timeout
EMAIL_TIMEOUT = 5
# ADMIN
# ------------------------------------------------------------------------------