protected function limit($connection, $limit)
    {
        $this->logger->notice(sprintf(
            'Limiting connection %s: %s',
            $connection->getIp(),
            $limit
        ));

        $connection->close(new RateLimiterException($limit));
    }
protected function limit($connection, $limit)
    {
        $this->logger->notice(sprintf(
            'Limiting connection %s: %s',
            $connection->getIp(),
            $limit
        ));

        $connection->close(new RateLimiterException($limit));
    }
protected function limit ( $ connection , $ limit ) { $ this -> logger -> notice ( sprintf ( 'Limiting connection %s: %s' , $ connection -> getIp ( ) , $ limit ) ) ; $ connection -> close ( new RateLimiterException ( $ limit ) ) ; }
Limits the given connection

@param Connection $connection
@param string     $limit Reason
Limits the given connection