code: def on_connecting(self, host_and_port):
          
          log.info("connecting %s %s (x %s)", host_and_port[0], host_and_port[1], self.connections)
          self.connections += 1
docs: Increment the connection count. See :py:meth:`ConnectionListener.on_connecting`
  
          :param (str,int) host_and_port: the host and port as a tuple