code: def maybe_connect(self, node_id, wakeup=True):
          
          if self._can_connect(node_id):
              self._connecting.add(node_id)
              # Wakeup signal is useful in case another thread is
              # blocked waiting for incoming network traffic while holding
              # the client lock in poll().
              if wakeup:
                  self.wakeup()
              return True
          return False
docs: Queues a node for asynchronous connection during the next .poll()