BIO_write and BIO_read could, in theory, return -2.