TlsStream.shutdown

void shutdown() @trusted nothrow

Shutdown the TLS connection gracefully.

Sends a close_notify to the peer. If the underlying transport is non-blocking, this may return before the shutdown completes. Check state() and ioInterest() to determine if further I/O is needed.

For an abortive close that skips close_notify, call abort().