mhale / smtpd

An SMTP server package written in Go, in the style of the built-in HTTP server.
The Unlicense
397 stars 92 forks source link

add close and shutdown #29

Closed ggilley closed 3 years ago

ggilley commented 3 years ago

Here's a shot at adding Close which closes connections immediately and Shutdown which does a graceful termination by waiting until current sessions have ended.

mhale commented 3 years ago

Thanks for the PR!