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

Why need to make sure all the data has been consumed ? #209

Closed
xcw0754 opened this issue Jan 4, 2023 · 1 comment
Closed

Why need to make sure all the data has been consumed ? #209

xcw0754 opened this issue Jan 4, 2023 · 1 comment

Comments

@xcw0754
Copy link

xcw0754 commented Jan 4, 2023

go-smtp/conn.go

Line 892 in 49b1743

io.Copy(ioutil.Discard, r) // Make sure all the data has been consumed

What would happen if close the connection directly?

@emersion
Copy link
Owner

emersion commented Jan 4, 2023

Please don't ask questions on the issue tracker.


We need to read the data blob sent by the client, otherwise we won't be able to read the next SMTP command.

@emersion emersion closed this as completed Jan 4, 2023
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

No branches or pull requests

2 participants