test/ssl_test: give up if both client and server wait on read
authorRichard Levitte <levitte@openssl.org>
Fri, 16 Dec 2016 10:18:47 +0000 (11:18 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 17 Dec 2016 10:48:33 +0000 (11:48 +0100)
commitf8641c9c693179fe7461608c51aaa8700dca6da2
tree1bd49ce09337ab0b5f70e7a03958aa9447190e24
parent6c8e02af7e8d789d2b3dd6efe937b8c64784643f
test/ssl_test: give up if both client and server wait on read

In some cases, both client and server end of the test can end up in
SSL_ERROR_WANT_READ and never get out of it, making the test spin.
Detect it and give up instead of waiting endlessly.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2096)
(cherry picked from commit ceb6d746941063eccf7655c7709ba56ca117044b)
test/handshake_helper.c