SmtpServer icon indicating copy to clipboard operation
SmtpServer copied to clipboard

No Timeout after DATA

Open tinohager opened this issue 6 months ago • 2 comments

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

tinohager avatar Aug 27 '24 08:08 tinohager