Fix a hang in tests that use sessionfile
authorMatt Caswell <matt@openssl.org>
Wed, 15 Mar 2017 00:54:04 +0000 (00:54 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 15 Mar 2017 11:23:57 +0000 (11:23 +0000)
commitdb0e0abb88b6bd5bfa5637ee84e59dcb5a232008
tree1aeb54420e3af760af231b116281a4f247512beb
parent3a80bd29be74b50771dd20e15282db693dbe9522
Fix a hang in tests that use sessionfile

The logic for testing whether the sessionfile has been created or not
was faulty and could result in race conditions. If you "lose" the tests
hang waiting for a session file that's never going to arrive.

Fixes #2950

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2955)
util/TLSProxy/Proxy.pm