3 var http = require('http');
4 var port = parseInt(process.env.PORT, 10) || 8000;
5 var defaultLag = parseInt(process.argv[2], 10) || 100;
7 http.createServer(function(req, res) {
8 res.writeHead(200, { 'content-type': 'text/plain',
9 'content-length': '2' });
11 var lag = parseInt(req.url.split('/').pop(), 10) || defaultLag;
12 setTimeout(function() {
15 }).listen(port, 'localhost');