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

Allow sender to immediately hangup after QUIT message #344

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

mworrell
Copy link
Collaborator

@mworrell mworrell commented Nov 7, 2024

This fixes a problem where the gen_smtp_server crashes if the client sends a QUIT message and immediately hangs up before the "221 Bye" can be send. This is done by ignoring any send errors.

In the client: be a bit more subtle when receiving funky multiline replies. Do not immediately crash but just throw an "unexpected_response" exception.

Use OTP 25 for docs build, as ex_doc requires it.

@mworrell mworrell requested review from arjan and seriyps November 7, 2024 16:51
@mworrell mworrell self-assigned this Nov 7, 2024
@mworrell mworrell added this to the 1.3 milestone Nov 7, 2024
@mworrell
Copy link
Collaborator Author

@arjan Could you have a look at this pull request?

@arjan
Copy link
Collaborator

arjan commented Dec 16, 2024

Looks good!

@mworrell mworrell merged commit bd7fae3 into master Dec 16, 2024
21 checks passed
@mworrell mworrell deleted the server-quit-bye branch December 16, 2024 11:30
@mworrell
Copy link
Collaborator Author

@arjan Shall we make a new release? There are quite some changes since the 1.2.0. (I don't have access to the Hex package, so can't release...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants