Rework section about return values another time (based on hints from
authorLutz Jänicke <jaenicke@openssl.org>
Thu, 13 Sep 2001 13:21:38 +0000 (13:21 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Thu, 13 Sep 2001 13:21:38 +0000 (13:21 +0000)
Bodo Moeller).

doc/ssl/SSL_read.pod
doc/ssl/SSL_write.pod

index 6b47f2fbd1bb95e5834546dc4618bbaacde3f51d..f6c37f77e491d5d39c02a85bdd9922e0bc3e10b4 100644 (file)
@@ -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
-peer by sending a "close notify" alert. The SSL_RECEIVED_SHUTDOWN flag in
-the ssl shutdown state is set (see L<SSL_shutdown(3)|SSL_shutdown(3)>,
-L<SSL_set_shutdown(3)|SSL_set_shutdown(3)>).
-Call SSL_get_error() with the return value B<ret> to find out,
+The read operation was not successful. The reason may either be a clean
+shutdown due to a "close notify" alert sent by the peer (in which case
+the SSL_RECEIVED_SHUTDOWN flag in the ssl shutdown state is set
+(see L<SSL_shutdown(3)|SSL_shutdown(3)>,
+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
 (SSL_ERROR_ZERO_RETURN).
 
 whether an error occurred or the connection was shut down cleanly
 (SSL_ERROR_ZERO_RETURN).
 
index 7299f6e2ee28f9f96e36498cfa1d1aaa455149af..dfa42e9aeef8794a5679e510877e27d9016ff442 100644 (file)
@@ -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
-SSL connection was shut down (the SSL_SENT_SHUTDOWN flag in the shutdown
-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,
+The write operation was not successful. Probably 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
 (SSL_ERROR_ZERO_RETURN).
 
 whether an error occurred or the connection was shut down cleanly
 (SSL_ERROR_ZERO_RETURN).