code: function reset_timeout() {
  
          // Get rid of old timeout (if any)
          window.clearTimeout(receive_timeout);
  
          // Set new timeout
          receive_timeout = window.setTimeout(function () {
              close_tunnel(new Guacamole.Status(Guacamole.Status.Code.UPSTREAM_TIMEOUT, "Server timeout."));
          }, tunnel.receiveTimeout);
  
      }
docs: Initiates a timeout which, if data is not received, causes the tunnel
  to close with an error.
  
  @private