def METHOD_NAME(self, reader, writer):
    if self._connection_accepted.is_set():
        writer.close()
        return
    self._reader = reader
    self._writer = writer
    self._connection_accepted.set()