Commit a34ac5b8 authored by Matt Caswell's avatar Matt Caswell
Browse files

Add a test for BIO_read() returning 0 in SSL_read() (and also for write)



A BIO_read() 0 return indicates that a failure occurred that may be
retryable. An SSL_read() 0 return indicates a non-retryable failure. Check
that if BIO_read() returns 0, SSL_read() returns <0. Same for SSL_write().

The asyncio test filter BIO already returns 0 on a retryable failure so we
build on that.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 4880672a
Supports Markdown
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