SmtpServer
SmtpServer copied to clipboard
No Timeout after DATA
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 the SmtpSession
with a timeout we could easily solve the problem.
https://github.com/cosullivan/SmtpServer/blob/9d253c479e0f402d6cf2a002fb5815fad0b87a3a/Src/SmtpServer/SmtpSession.cs#L57