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
/** | |
* This simulates a browser aborting XHR requests | |
* | |
* needs: npm install request | |
*/ | |
var request = require('request'); | |
var batch = 20; | |
var abortTime = 50 // timed so that many requests are aborted |