This is a feature request. I want to find out if it's in scope for this package.
It'd be nice to be able to stop the smtpd.Server, similar to http.Server.Close and/or http.Server.Shutdown. That would make it easier to write a program that uses smtpd and can shutdown gracefully, without the risk of quitting in the middle of writing a file or so.
This is a feature request. I want to find out if it's in scope for this package.
It'd be nice to be able to stop the
smtpd.Server
, similar tohttp.Server.Close
and/orhttp.Server.Shutdown
. That would make it easier to write a program that usessmtpd
and can shutdown gracefully, without the risk of quitting in the middle of writing a file or so.What do you think? /cc @bradfitz @crawshaw