Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21815)
If a locally initiated shutdown has already been triggered or the connection has
started terminating for another reason, this flag has no effect.
+B<SSL_SHUTDOWN_FLAG_WAIT_PEER> implies B<SSL_SHUTDOWN_FLAG_NO_STREAM_FLUSH>, as
+stream data cannot be flushed after a peer closes the connection.
+
=head2 Nonblocking Mode
SSL_shutdown() and SSL_shutdown_ex() block if the connection is configured in