private String blockingSSLConnect(int socketBufSize) throws IOException {
    String connectionId =
        selector.connect(new InetSocketAddress("localhost", server.port), socketBufSize, socketBufSize, PortType.SSL);
    while (!selector.connected().contains(connectionId)) {
      selector.poll(10000L);
    }
    return connectionId;
  }
Connect and wait for the connection to complete.
@param socketBufSize the size for the socket send and receive buffers.
@return the connection ID.
@throws IOException
ambry-network/src/test/java/com/github/ambry/network/SSLSelectorTest.java