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>
Fri, 16 Dec 2016 13:46:58 +0000 (14:46 +0100)
commitceb6d746941063eccf7655c7709ba56ca117044b
treefcd5eef16b703f8e1f8c79150885e005bf2ab3b7
parenta05bed195277f99c9f8e8149ad49edbc59fc4973
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)
test/handshake_helper.c