def METHOD_NAME(s):
    buf = b""
    while True:
        recv = b""
        try:
            recv = s.recv(1)
        except:
            pass
        if len(recv) == 0:
            break
        buf += recv
    return buf