Skip to content

Instantly share code, notes, and snippets.

@bzoz
Created August 8, 2016 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bzoz/4bedbd51c3160875144c1dd108673eaa to your computer and use it in GitHub Desktop.
Save bzoz/4bedbd51c3160875144c1dd108673eaa to your computer and use it in GitHub Desktop.
const http = require('http');
var len = 1024 * 1024;
var chunk = Buffer.alloc(len, 'x');
var server = http.createServer(function(req, res) {
res.write(chunk);
res.end()
});
server.listen(1234, function() {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment