Sha256: e64b0b98e1bb8da3016a215002a3b2bf0035b839ed4a03c7938c133ab9a72d10
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
'use strict'; const common = require('../common'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } const tls = require('tls'); const fs = require('fs'); const net = require('net'); const options = { key: fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem'), cert: fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem') }; const server = tls.createServer(options, common.fail); server.listen(0, common.mustCall(function() { const c = net.createConnection(this.address().port); c.on('connect', common.mustCall(function() { c.write('blah\nblah\nblah\n'); })); c.on('end', common.mustCall(function() { server.close(); })); }));
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
node-compiler-0.9.1 | vendor/node/test/parallel/test-tls-junk-closes-server.js |
node-compiler-0.9.0 | vendor/node-v7.2.1/test/parallel/test-tls-junk-closes-server.js |