

def _receive_goaway_frame(self, frame):
    '\n        Receive a GOAWAY frame on the connection.\n        '
    events = self.state_machine.process_input(ConnectionInputs.RECV_GOAWAY)
    self.clear_outbound_data_buffer()
    new_event = ConnectionTerminated()
    new_event.error_code = frame.error_code
    new_event.last_stream_id = frame.last_stream_id
    new_event.additional_data = (frame.additional_data if frame.additional_data else None)
    events.append(new_event)
    return ([], frame)

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection._receive_goaway_frame/VarMisuse@83/144 `events`->`frame`