use c++ instead of c++0x to compatible with old compiler
This commit is contained in:
parent
f8f934a119
commit
314d43203f
11 changed files with 454 additions and 106 deletions
30
examples/pressure.js
Normal file
30
examples/pressure.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Generated by ToffeeScript 1.1.4-4
|
||||
(function() {
|
||||
var assert, curl, i, j, next, once, _i;
|
||||
|
||||
curl = require('../index');
|
||||
|
||||
assert = require('assert');
|
||||
|
||||
j = 0;
|
||||
|
||||
(next = function() {
|
||||
console.info("curl instances: ", curl.get_count());
|
||||
return setTimeout(next, 1000);
|
||||
})();
|
||||
|
||||
for (i = _i = 1; _i <= 100; i = ++_i) {
|
||||
(once = function() {
|
||||
var _this = this;
|
||||
return curl('localhost/test.html', function(_$$_err, _$$_res) {
|
||||
var err, res;
|
||||
err = _$$_err;
|
||||
res = _$$_res;
|
||||
assert.equal(res.body.length, 1468);
|
||||
if (++j % 100 === 0) console.info(j);
|
||||
if (j < 20000) return once();
|
||||
});
|
||||
})();
|
||||
}
|
||||
|
||||
}).call(this);
|
Loading…
Add table
Add a link
Reference in a new issue