while !open_socket do sleep 1 end
unless
if
while
这里涉及到 until:
until
until open_socket do sleep 1 end
sleep 1 until open_socket