Rework section about return values another time (based on hints from
Bodo Moeller).
This commit is contained in:
parent
4e1b0d8904
commit
6d8566f2eb
@ -83,11 +83,13 @@ bytes actually read from the TLS/SSL connection.
|
|||||||
|
|
||||||
=item 0
|
=item 0
|
||||||
|
|
||||||
The read operation was not successful, the SSL connection was closed by the
|
The read operation was not successful. The reason may either be a clean
|
||||||
peer by sending a "close notify" alert. The SSL_RECEIVED_SHUTDOWN flag in
|
shutdown due to a "close notify" alert sent by the peer (in which case
|
||||||
the ssl shutdown state is set (see L<SSL_shutdown(3)|SSL_shutdown(3)>,
|
the SSL_RECEIVED_SHUTDOWN flag in the ssl shutdown state is set
|
||||||
L<SSL_set_shutdown(3)|SSL_set_shutdown(3)>).
|
(see L<SSL_shutdown(3)|SSL_shutdown(3)>,
|
||||||
Call SSL_get_error() with the return value B<ret> to find out,
|
L<SSL_set_shutdown(3)|SSL_set_shutdown(3)>). It is also possible, that
|
||||||
|
the peer simply shut down the underlying transport and the shutdown is
|
||||||
|
incomplete. Call SSL_get_error() with the return value B<ret> to find out,
|
||||||
whether an error occurred or the connection was shut down cleanly
|
whether an error occurred or the connection was shut down cleanly
|
||||||
(SSL_ERROR_ZERO_RETURN).
|
(SSL_ERROR_ZERO_RETURN).
|
||||||
|
|
||||||
|
@ -78,12 +78,8 @@ bytes actually written to the TLS/SSL connection.
|
|||||||
|
|
||||||
=item 0
|
=item 0
|
||||||
|
|
||||||
The write operation was not successful, because the write side of the
|
The write operation was not successful. Probably the underlying connection
|
||||||
SSL connection was shut down (the SSL_SENT_SHUTDOWN flag in the shutdown
|
was closed. Call SSL_get_error() with the return value B<ret> to find out,
|
||||||
state is set) by calling L<SSL_shutdown(3)|SSL_shutdown(3)> or
|
|
||||||
L<SSL_set_shutdown(3)|SSL_set_shutdown(3)>. It is also possible, that the
|
|
||||||
underlying connection was closed.
|
|
||||||
Call SSL_get_error() with the return value B<ret> to find out,
|
|
||||||
whether an error occurred or the connection was shut down cleanly
|
whether an error occurred or the connection was shut down cleanly
|
||||||
(SSL_ERROR_ZERO_RETURN).
|
(SSL_ERROR_ZERO_RETURN).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user