'Once the Broker sends back a Connection.Tune, we will set our tuning
variables that have been returned to us and kick off the Heartbeat
monitor if required, send our TuneOk and then the Connection. Open rpc
call on channel 0.
:param pika.frame.Method method_frame: The frame received'

def _on_connection_tune(self, method_frame):

    self._set_connection_state(self.CONNECTION_TUNE)
    self.params.channel_max = self._combine(self.params.channel_max, method_frame.method.channel_max)
    self.params.frame_max = self._combine(self.params.frame_max, method_frame.method.frame_max)
    self.params.heartbeat = self._tune_heartbeat_timeout(client_value=self.params.heartbeat, server_value=method_frame.method.heartbeat)
    self._body_max_length = self._get_body_frame_max_length()
    self.heartbeat = self._create_heartbeat_checker()
    self._send_connection_tune_ok()
    self._send_connection_open()
