def METHOD_NAME():
    try:
        return sock.recv(bufsize)
    except SSLWantReadError:
        pass
    except socket.error as exc:
        error_code = extract_error_code(exc)
        if error_code != errno.EAGAIN and error_code != errno.EWOULDBLOCK:
            raise
    sel = selectors.DefaultSelector()
    sel.register(sock, selectors.EVENT_READ)
    r = sel.select(sock.gettimeout())
    sel.close()
    if r:
        return sock.recv(bufsize)