code: def connection_factory(self, endpoint, *args, **kwargs):
          
          kwargs = self._make_connection_kwargs(endpoint, kwargs)
          return self.connection_class.factory(endpoint, self.connect_timeout, *args, **kwargs)
docs: Called to create a new connection with proper configuration.
          Intended for internal use only.