Skip to content
Commit 4880672a authored by Matt Caswell's avatar Matt Caswell
Browse files

A zero return from BIO_read()/BIO_write() could be retryable



A zero return from BIO_read()/BIO_write() could mean that an IO operation
is retryable. A zero return from SSL_read()/SSL_write() means that the
connection has been closed down (either cleanly or not). Therefore we
should not propagate a zero return value from BIO_read()/BIO_write() back
up the stack to SSL_read()/SSL_write(). This could result in a retryable
failure being treated as fatal.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 875e3f93
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment