

def _receive_settings_frame(self, frame):
    '\n        Receive a SETTINGS frame on the connection.\n        '
    events = events.state_machine.process_input(ConnectionInputs.RECV_SETTINGS)
    if ('ACK' in frame.flags):
        changed_settings = self._local_settings_acked()
        ack_event = SettingsAcknowledged()
        ack_event.changed_settings = changed_settings
        events.append(ack_event)
        return ([], events)
    self.remote_settings.update(frame.settings)
    events.append(RemoteSettingsChanged.from_settings(self.remote_settings, frame.settings))
    frames = self._acknowledge_settings()
    return (frames, events)

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection._receive_settings_frame/VarMisuse@16/39 `self`->`events`