JM-A21 / GraphMailRelay

A basic .NET-based background worker service for Windows intended to act as a simple and to-the-point SMTP relay for applications, services, and devices that don't natively support the Graph API, allowing these devices to still send mail in a modern and secure way.
GNU General Public License v3.0
1 stars 0 forks source link

Relay application produces massive memory leak when attempting to gracefully shut down #9

Closed JM-A21 closed 1 year ago

JM-A21 commented 1 year ago

When attempting to gracefully stop the Windows Service, the application hangs on shutdown (likely due to issue #1) and its memory consumption immediately balloons and consumes all available system memory.

JM-A21 commented 1 year ago

Hopefully resolved in commit 5e2333f. Seems to have been related to passing the IHostApplicationLifetime cancellation token to the SmtpServer when calling StartAsync().