try:
            sock = ssl_sock.unwrap()
            if not done.cancelled():
                done.set_result(sock)
        except SSLWantReadError: