Skip to content

Fix shutdown not actually shutting down#46

Open
Naatan wants to merge 1 commit into
mhale:masterfrom
Naatan:master
Open

Fix shutdown not actually shutting down#46
Naatan wants to merge 1 commit into
mhale:masterfrom
Naatan:master

Conversation

@Naatan

@Naatan Naatan commented Dec 18, 2025

Copy link
Copy Markdown

Ran into this issue: #27

@cuu508

cuu508 commented Apr 22, 2026

Copy link
Copy Markdown

Would it be possible to also wait for the in-flight SMTP sessions to complete?

Server.Shutdown() in the http packages does this:

Shutdown gracefully shuts down the server without interrupting any active connections. Shutdown works by first closing all open listeners, then closing all idle connections, and then waiting indefinitely for connections to return to idle and then shut down. If the provided context expires before the shutdown is complete, Shutdown returns the context's error, otherwise it returns any error returned from closing the Server's underlying Listener(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants