for a substantial period of time after it is nominally closed. This is necessary
to ensure that any connection closure notification sent to the peer was
successfully received. However, a consequence of this is that a fully
-RFC-compliant QUIC connection closure process could take on the order of
+RFC-compliant QUIC connection closure process could take of the order of
seconds. This may be unsuitable for some applications, such as short-lived
processes which need to exit immediately after completing an application-layer
transaction.
=head1 RETURN VALUES
-For both SSL_shutdown() and SSL_shutdown_ex() following return values can occur:
+For both SSL_shutdown() and SSL_shutdown_ex() the following return values can occur:
=over 4
=item Z<>0
-The shutdown is not yet finished: the close_notify was sent but the peer
-did not send it back yet.
-Call SSL_read() to do a bidirectional shutdown.
+The shutdown process is ongoing and has not yet completed.
-For QUIC connection SSL objects, a CONNECTION_CLOSE frame may have been sent
-but the connection closure process has not yet completed.
+For TLS and DTLS, this means that a close_notify alert has been sent but the
+peer has not yet replied in turn with its own close_notify.
+
+For QUIC connection SSL objects, a CONNECTION_CLOSE frame may have been
+sent but the connection closure process has not yet completed.
Unlike most other functions, returning 0 does not indicate an error.
-L<SSL_get_error(3)> should not be called; it may misleadingly
-indicate an error even though no error occurred.
+L<SSL_get_error(3)> should not be called; it may misleadingly indicate an error
+even though no error occurred.
=item Z<>1
-The shutdown was successfully completed. For non-QUIC SSL objects, this means
-that the close_notify alert was sent and the peer's close_notify alert was
-received. For QUIC connection SSL objects, this means that the connection
-closure process has completed.
+The shutdown was successfully completed.
+
+For TLS and DTLS, this means that a close_notify alert was sent and the peer's
+close_notify alert was received.
+
+For QUIC connection SSL objects, this means that the connection closure process
+has completed.
=item E<lt>0