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

Fix connection issues #51

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Fix connection issues #51

merged 2 commits into from
Jul 28, 2023

Conversation

codingjoe
Copy link
Member

Render markdown emails before opening a SMTP connection to avoid
connection timeouts. Services like AWS SES have very short
connection timeouts. Therefore, all messages should be fully
rendered before a connection is established.

@codingjoe codingjoe self-assigned this Jul 28, 2023
@codingjoe codingjoe requested a review from amureki July 28, 2023 09:44
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (f6b6d71) 100.00% compared to head (8eb1947) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #51   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9        10    +1     
  Lines          355       360    +5     
=========================================
+ Hits           355       360    +5     
Files Changed Coverage Δ
emark/backends.py 100.00% <100.00%> (ø)
emark/message.py 100.00% <100.00%> (ø)
...02_rename_from_address_send_from_email_and_more.py 100.00% <100.00%> (ø)
emark/models.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

emark/models.py Outdated Show resolved Hide resolved
emark/message.py Outdated Show resolved Hide resolved
emark/backends.py Show resolved Hide resolved
@codingjoe codingjoe force-pushed the fix-tracking branch 3 times, most recently from 1362620 to 49e2a02 Compare July 28, 2023 11:51
Render markdown emails before opening a SMTP connection to avoid
connection timeouts. Services like AWS SES have very short
connection timeouts. Therefore, all messages should be fully
rendered before a connection is established.
Copy link
Member

@amureki amureki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, I feel better with this change. :)

Just left a couple of small comments.

emark/models.py Outdated Show resolved Hide resolved
emark/backends.py Outdated Show resolved Hide resolved
emark/backends.py Show resolved Hide resolved
emark/backends.py Outdated Show resolved Hide resolved
@codingjoe codingjoe requested a review from amureki July 28, 2023 12:48
Copy link
Member

@amureki amureki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, lets gooooo

@codingjoe codingjoe merged commit db8ea55 into main Jul 28, 2023
15 checks passed
@codingjoe codingjoe deleted the fix-tracking branch July 28, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants