This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const args = require("node-args-parser")(process.argv) | |
var number = args.number; | |
if (number === 'undefined') process.exit(); | |
console.log("\007"); | |
var posix = require('posix'); | |
posix.setrlimit('nofile', {soft: 10000}); // multiple connections require a lot of open session files | |
var RateLimiter = require('request-rate-limiter'); | |
var limiter = new RateLimiter({ | |
rate: 200 // requests per interval, |