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

Pipeline MAIL FROM: and RCPT TO: commands. #48

Closed
link2xt opened this issue Feb 23, 2022 · 1 comment · Fixed by #54
Closed

Pipeline MAIL FROM: and RCPT TO: commands. #48

link2xt opened this issue Feb 23, 2022 · 1 comment · Fixed by #54

Comments

@link2xt
Copy link
Collaborator

link2xt commented Feb 23, 2022

Currently each command is only sent after receiving a reply for the previous one.

There is an await for each command:
https://github.com/async-email/async-smtp/blob/3e7a8f3de19fdeb19d14cf123a8696c49685d3fa/src/smtp/smtp_client.rs#L695
https://github.com/async-email/async-smtp/blob/3e7a8f3de19fdeb19d14cf123a8696c49685d3fa/src/smtp/smtp_client.rs#L705

This means on a high-latency connection you need an RTT per recipient. If you send a message to 10 users and RTT is 1 second, you wait 11 seconds before even starting to send the message.

See related post here:
chatmail/core#3092 (comment)

@link2xt
Copy link
Collaborator Author

link2xt commented Feb 23, 2022

There is a separate pipelining extension to allow grouping of MAIL TO, RCPT TO and DATA:
https://datatracker.ietf.org/doc/html/rfc2920

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 a pull request may close this issue.

1 participant