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

Reconnect auto-closed SMTP connections by foreign server #825

Conversation

tyranron
Copy link
Contributor

@tyranron tyranron commented Jan 8, 2021

Fixes #794

Recreates SmtpClient if second SMTP commabd returns io: incomplete error.

Unfortunately, due to async-email/async-smtp#37 we're unable check it earlier with SmtpClient::is_connected().

Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this @tyranron! I agree an upstream change in is_connected would be ideal, but createing a new connection is okay for me too.

core/src/smtp/mod.rs Show resolved Hide resolved
Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@amaury1093 amaury1093 merged commit 01ccf0d into reacherhq:master Jan 8, 2021
@tyranron
Copy link
Contributor Author

tyranron commented Jan 8, 2021

@amaurymartiny please wait before release for a while. I have one more PR coming today.

@tyranron tyranron deleted the reconnect-on-autoclosed-connections branch January 8, 2021 14:14
@amaury1093
Copy link
Member

Sounds good, thanks!

@tyranron tyranron mentioned this pull request Jan 11, 2021
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.

gmx.com emails are all unknown
2 participants