This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var constants = require('constants'); | |
var fs = require('fs'); | |
var https = require('https'); | |
// Modified form of current io.js default ciphers which gets A+ on ssllabs (assuming SHA256 certificate signature). | |
// Downside is it's not explicit which would be much better. | |
var ciphersImplicit = [ | |
'ECDHE-RSA-AES128-GCM-SHA256', | |
'ECDHE-RSA-AES128-SHA256', | |
'ECDHE-RSA-AES128-SHA', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer( | |
function(request, response) { | |
request.pause(); | |
response.writeHead(200, { 'Content-Type': 'text/plain' }); | |
response.write('now press CMD + R and every other request will hang for 2 minutes before returning'); | |
response.end(); | |
} | |
).listen(4000); |
NewerOlder