def recv_telnet(fd, timeout)

          data = ''

          begin