-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
No Timeout after DATA #226
Comments
I want to vote for this issue. We've just recently had a problem which went down to this. On the given day, Microsoft seemed to have a problem in it's SMTP transport. On a percentage of the connections, after the DATA command, no data was sent. The connections stayed open infinitely which resulted in many open connections on our side (which uses SmtpServer). We tackled it in I further want to add some of my findings to clarify why the problem arises. On creation of the duplex pipe in
the
The thing is, that From the MS docs:
I assume the It could be a solution to use the There is a pull request (#213) from @boba2fett which addresses this, in this commit f51e1fc. Let me know if, and how, I can support on this. |
fixed with 11.0.0-beta1 |
When the session reaches the
DATA
part it can stay open forever there is no timeout that would close the session here. This allows the connection to remain open forever. I think it would make sense to be able to define an overall timeout for a session.I think if we create a
LinkedTokenSource
in theSmtpSession
with a timeout we could easily solve the problem.SmtpServer/Src/SmtpServer/SmtpSession.cs
Line 57 in 9d253c4
The text was updated successfully, but these errors were encountered: