def METHOD_NAME(self):
    """
    TCP Limits: Maximum number of queries
    """
    name = 'maxqueriesperconn.tcp.tests.powerdns.com.'
    query = dns.message.make_query(name, 'A', 'IN')
    conn = self.openTCPConnection()
    count = 0
    for idx in range(self._maxTCPQueriesPerConn):
        try:
            self.sendTCPQueryOverConnection(conn, query)
            response = self.recvTCPResponseOverConnection(conn)
            self.assertTrue(response)
            count = count + 1
        except:
            pass
    # this one should fail
    failed = False
    try:
        self.sendTCPQueryOverConnection(conn, query)
        response = self.recvTCPResponseOverConnection(conn)
        self.assertFalse(response)
        if not response:
            failed = True
        else:
            count = count + 1
    except:
        failed = True
    conn.close()
    self.assertTrue(failed)
    self.assertEqual(count, self._maxTCPQueriesPerConn)