Skip to content
Myr

client.js

This file

Path

client.js

25 lines · 405 bytes · JavaScript

Last changed by

Merge branch 'master' of github.com:visionmedia/expressTj Holowaychukbefore adoption613bdc9

History of this file

Take it

Merge branch 'master' of github.com:visionmedia/expressTj Holowaychukbefore adoption613bdc9

lines 1–25why, one step back
1
2var http = require('http');34var times = 50;56while (times--) {7 var req = http.request({8 port: 30009 , method: 'POST'10 , headers: { 'Content-Type': 'application/x-www-form-urlencoded' }11 });1213 req.on('response', function(res){14 console.log(res.statusCode);15 });1617 var n = 500000;18 while (n--) {19 req.write('foo=bar&bar=baz&');20 }2122 req.write('foo=bar&bar=baz');2324 req.end();25}