

def _recv_tune(self, method_frame):
    self.connection._channel_max = (method_frame.args.read_short() or self.connection._channel_max)
    self.connection._frame_max = (method_frame.args.read_long() or self.connection._frame_max)
    if (self.connection._heartbeat is None):
        self.connection._heartbeat = method_frame.args.read_short()
    self._send_tune_ok()
    self._send_open()
    self.send_heartbeat()

dataset/ETHPy150Open agoragames/haigha/haigha/connection.py ConnectionChannel._recv_tune/original