Skip to content

Instantly share code, notes, and snippets.

@yigit-darcin
yigit-darcin / HttpSleeper.js
Created October 19, 2015 10:52 — forked from leozc/HttpSleeper.js
Node.js HTTP sleep server Simulate HTTP Timeout error
var http = require('http');
var sleep = require('sleep');
var timeout = 100000; //sleep 100 seconds
http.createServer(function (req, res) {
setTimeout((function() {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end("Hello I am awake");
}), timeout);
}).listen(8080);
sudo /usr/local/McAfee/AntiMalware/VSControl stopoas