X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fssl%2FSSL_write.pod;h=7299f6e2ee28f9f96e36498cfa1d1aaa455149af;hp=da66f0f056fc2be2e63b90e7dfea8fc498a2ced1;hb=d93eb21c7c1e39db098a7f1331a75cc95a783c2a;hpb=a403188f92101512d4d3e45bc7b8e047d283d9d2 diff --git a/doc/ssl/SSL_write.pod b/doc/ssl/SSL_write.pod index da66f0f056..7299f6e2ee 100644 --- a/doc/ssl/SSL_write.pod +++ b/doc/ssl/SSL_write.pod @@ -78,8 +78,18 @@ bytes actually written to the TLS/SSL connection. =item 0 -The write operation was not successful. Call SSL_get_error() with the return -value B to find out, whether an error occurred. +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 or +L. It is also possible, that the +underlying connection was closed. +Call SSL_get_error() with the return value B to find out, +whether an error occurred or the connection was shut down cleanly +(SSL_ERROR_ZERO_RETURN). + +SSLv2 (deprecated) does not support a shutdown alert protocol, so it can +only be detected, whether the underlying connection was closed. It cannot +be checked, why the closure happened. =item E0