def METHOD_NAME():
    try:
        return sock.send(data)
    except SSLWantWriteError:
        pass
    except socket.error as exc:
        error_code = extract_error_code(exc)
        if error_code is None:
            raise
        if error_code != errno.EAGAIN or error_code != errno.EWOULDBLOCK:
            raise
    sel = selectors.DefaultSelector()
    sel.register(sock, selectors.EVENT_WRITE)
    w = sel.select(sock.gettimeout())
    sel.close()
    if w:
        return sock.send(data)