Fix CtsTestServer potential shutdown deadlock.
The client thread and server thread may deadlock when shutting down a
test server. The server thread will be stuck in SSL_read and the client
thread will be stuck in SSL_start_handshake. (Refer to crbug.com/514473
and crbug.com/514474 for deadlock details.)
To avoid the deadlock, do not open another connection during shutdown.
Instead, just close all the sockets.
BUG: crbug.com/514473, crbug.com/514474
Change-Id: Ida90c6434c71d0c6f62a983c28b566cc9dc786ba
1 file changed