Skip to content

Instantly share code, notes, and snippets.

@KimSchneider
Created August 2, 2011 13:20
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 KimSchneider/1120162 to your computer and use it in GitHub Desktop.
Save KimSchneider/1120162 to your computer and use it in GitHub Desktop.
var http = require('http');
var httpProxy = require('http-proxy');
require('http-proxy').setMaxSockets(500);
httpProxy.createServer(8080, "localhost").listen(8181);
var i = 0;
http.createServer(function (req, res) {
console.log(++i);
}).listen(8080, "localhost");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment