

def flow(s1, s2):
    while True:
        (r, w, x) = select.select([s1, s2], [], [], 5.0)
        if (s1 in w):
            data = s1.recv(4096)
            if data:
                s2.send(data)
            else:
                break
        if (s2 in r):
            data = s2.recv(4096)
            if data:
                s1.send(data)
            else:
                break
    s1.close()
    s2.close()

dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py flow/VarMisuse@48/50 `r`->`w`