code: def handle_hup(self):
          
          with self.lock:
              if self._state == 'connecting' and self._dst_addrs:
                  self._hup = False
                  self._set_state("connect")
                  return
          self._hup = True
docs: Handle the 'channel hungup' state. The handler should not be writable
          after this.