mirror of
https://github.com/simple-login/app.git
synced 2025-09-13 01:55:48 +08:00
Set directly socket timeout
This commit is contained in:
parent
7347fc75d4
commit
ee5a2a73d3
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ class MailSender:
|
|||
with SMTP(
|
||||
host=server_host, port=server_port, timeout=config.POSTFIX_CONNECT_TIMEOUT
|
||||
) as smtp:
|
||||
smtp.timeout = config.POSTFIX_TIMEOUT
|
||||
smtp.sock.settimeout(config.POSTFIX_TIMEOUT)
|
||||
|
||||
if config.POSTFIX_SUBMISSION_TLS:
|
||||
smtp.starttls()
|
||||
|
|
Loading…
Add table
Reference in a new issue