Sha256: 1fd80e70dccd687c0a362941db7021089185381e8b8504b99d18dbd13d92ae08

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

'use strict';
const common = require('../common');

if (!common.hasCrypto) {
  common.skip('missing crypto');
  return;
}
const tls = require('tls');
const stream = require('stream');

const delay = new stream.Duplex({
  read: function read() {
  },
  write: function write(data, enc, cb) {
    console.log('pending');
    setImmediate(function() {
      console.log('done');
      cb();
    });
  }
});

const secure = tls.connect({
  socket: delay
});
setImmediate(function() {
  secure.destroy();
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/parallel/test-tls-destroy-whilst-write.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/parallel/test-tls-destroy-whilst-write.js